login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A078913 a(1)=a(2)=1, a(n)=a(n-1)+a(n-2) if n is not congruent to 3, a(n)=a(n-1)+a(n/3) if n is congruent to 3. 0
1, 1, 2, 3, 5, 6, 11, 17, 19, 36, 55, 58, 113, 171, 176, 347, 523, 529, 1052, 1581, 1592, 3173, 4765, 4782, 9547, 14329, 14348, 28677, 43025, 43061, 86086, 129147, 129202, 258349, 387551, 387609, 775160, 1162769, 1162882, 2325651, 3488533, 3488704 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(3n) is asymptotic to c*3^n, a(3n+1) to 2*c*3^n, a(3n+2) to 3*c*3^n where c=0.729407718249558020561155714549683618764251558505616....
PROG
(PARI) a(n)=if(n<3, 1, a(n-1)+if(n%3, a(n-2), a(n/3)))
CROSSREFS
Sequence in context: A268935 A112598 A346721 * A174100 A359599 A114339
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 11 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)