OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = phi^(2-phi)*(2*n)^(phi-1)+O(n^(phi-1)/log(n)) where phi is the golden ratio.
EXAMPLE
Read 1,3,3,3,5,5,5,7,7,7,9,9,9,9,9,11,11,11,11,11, as 1,(3,3,3),(5,5,5),(7,7,7),(9,9,9,9,9),(11,11,11,11,11), count occurrences between 2 parentheses, gives 1,3,3,3,5,5,... which is the sequence itself.
PROG
(PARI) a=[1, 3, 3, 3]; for(n=3, 20, for(i=1, a[n], a=concat(a, 2*n-1))); a
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 25 2003
EXTENSIONS
Corrected at the suggestion of Kevin Ryde by Benoit Cloitre, May 31 2012
STATUS
approved
