login
This site is supported by donations 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

Table of n, a(n) for n=1..42.

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: A068441 A268935 A112598 * A174100 A114339 A127525

Adjacent sequences:  A078910 A078911 A078912 * A078914 A078915 A078916

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 21 07:53 EDT 2019. Contains 322327 sequences. (Running on oeis4.)