A138467 a(1)=1, then for n>=2 a(n) = n - floor((1/3)*a(a(n-1))).
1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11, 11, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 22, 22, 23, 24, 25, 26, 26, 27, 28, 29, 30, 30, 31, 32, 33, 34, 34, 35, 36, 37, 37, 38, 39, 40, 41, 41, 42, 43, 44, 45, 45, 46, 47, 48, 49, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58
Offset: 1
Keywords
Links
- Michel Dekking, Proof by Benoit Cloitre
Programs
-
PARI
a(n)=floor((3/2)*(sqrt(7/3)-1)*(n+1))
Formula
For n>=1, a(n) = floor(r*(n+1)) where r=(3/2)*(sqrt(7/3)-1).
Extensions
More terms from Yalcin Aktar, Jul 13 2008
Comments