|
| |
|
|
A071995
|
|
a(1) = 1, a(2) = 0, a(n) = a(floor(n/3)) + a(n - floor(n/3))
|
|
2
| |
|
|
1, 0, 1, 2, 3, 2, 3, 2, 3, 4, 3, 4, 5, 6, 7, 6, 7, 6, 7, 8, 9, 10, 9, 8, 9, 8, 9, 10, 11, 12, 13, 14, 13, 12, 11, 12, 13, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 20, 19, 18, 19, 18, 19, 18, 19, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 29, 30, 29, 28, 27, 26, 27, 28, 27, 26
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,4
|
|
|
COMMENTS
| "Rauzy's sequence" with initial values 1, 0.
David Moews showed that a(n)/n converges to about 0.37512. - Jim Nastos (nastos(AT)gmail.com), Jan 08 2003
Difference of consecutive terms is always +/- 1.
|
|
|
LINKS
| David Moews, Asymptotic behavior of Rauzy's sequence
J. O. Shallit, Ten Problems I Can't Solve (1.1 MB ps)
|
|
|
MATHEMATICA
| a[1]=1; a[2]=0; a[n_] := a[n]=a[Floor[n/3]]+a[n-Floor[n/3]]; Table[a[n], {n, 1, 80}]
|
|
|
CROSSREFS
| Cf. A071991, A071996.
Sequence in context: A076225 A140887 A132423 * A114108 A073820 A103509
Adjacent sequences: A071992 A071993 A071994 * A071996 A071997 A071998
|
|
|
KEYWORD
| easy,nonn
|
|
|
AUTHOR
| Jim Nastos (nastos(AT)alumni.uwaterloo.ca), Jun 17 2002
|
|
|
EXTENSIONS
| Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 23 2002
|
| |
|
|