proposed
approved
proposed
approved
editing
proposed
(PARI) afr(n) = {kdiff = 1; fp = primes(n); for (i=1, n, num = fp[i]; for (j=1, n, den = fp[j]; diff = abs(num/den - 1/4); if (diff <= kdiff, kdiff = diff; knum = num; kden = den; ); ); ); return(knum/kden); }
a(n) = denominator(afr(PARIn)) ; \\ see prog in A161555._Michel Marcus_, Jun 12 2013 & Mar 21 2016
approved
editing
proposed
approved
editing
proposed
Denominators of sequence of fractions of primes that minimize absolute value of difference between the fractions and 1/4. For n = 2, there are two primes available for use in numerator or denominator: 2,3. The best approximation to 1/4 is 2/3. Sequence begins at n = 2.
3, 5, 7, 11, 13, 13, 19, 19, 29, 29, 29, 29, 43, 43, 53, 53, 53, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 149, 149, 149, 163, 163, 173, 173, 173, 173, 173, 173, 173, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 269, 269, 269, 269
For n = 2, there are two primes available for use in numerator or denominator: 2,3. The best approximation to 1/4 is 2/3. Sequence begins at n = 2.
(PARI) \\ see prog in A161555.
Cf. A161555 (numerators).
nonn,frac
More terms from Michel Marcus, Jun 12 2013
approved
editing
_Daniel Tisdale (daniel6874(AT)gmail.com), _, Jun 13 2009
Denominators of sequence of fractions of primes that minimize absolute value of difference between the fractions and 1/4. For n = 2, there are two primes available for use in numerator or denominator: 2,3. The best approximation to 1/4 is 2/3. Sequence begins at n = 2.
3, 5, 7, 11, 13, 13, 19, 19, 29
1,1
For n=2, there are two primes available to approximate 1/4. The closest fraction in absolute value is 2/3. The first few approximating fractions are: 2/3, 2/5, 2/7, 3/11, 3/13,...
nonn
Daniel Tisdale (daniel6874(AT)gmail.com), Jun 13 2009
approved