OFFSET
1,2
COMMENTS
Take the list of positive rationals {R(n): n>=1} in the order defined by Calkin and Wilf (Recounting the Rationals, 1999); a(n) = numerator of R(prime(n)). - The original name of this sequence.
The list of rationals {R(n)} is essentially given by A002487(n)/A002487(n+1). [As two adjacent terms of A002487 are always relatively prime, the numerator of R(prime(n)) reduces to just A002487(prime(n)). - Antti Karttunen, Dec 02 2025]
Apart from a(2) = A002487(A000040(2)) = A002487(3) = 2, all other terms are odd because A002487(n) is even if and only if n is a multiple of 3. - Antti Karttunen, Dec 02 2025
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
Neil Calkin and Herbert S. Wilf, Recounting the rationals, Amer. Math. Monthly (2000) Vol. 107, No. 4, 360-363.
FORMULA
MATHEMATICA
PROG
(PARI)
A002487(n) = { my(a=1, b=0); while(n>0, if(bitand(n, 1), b+=a, a+=b); n>>=1); (b); };
CROSSREFS
KEYWORD
nonn,easy,frac
AUTHOR
James Kirk Winkler, Aug 10 2015
EXTENSIONS
Definition simplified by Antti Karttunen, Dec 02 2025
STATUS
approved
