Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A131294
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A131294 a(n)=ds_3(a(n-1))+ds_3(a(n-2)), a(0)=0, a(1)=1; where ds_3=digital sum base 3. +0
15
0, 1, 1, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3 (list; graph; listen)
OFFSET

0,4

COMMENT

The digital sum analogue (in base 3) of the Fibonacci recurrence.

When starting from index n=3, periodic with Pisano period A001175(2)=3.

a(n) and Fib(n)=A000045(n) are congruent modulo 2 which implies that (a(n) mod 2) is equal to (Fib(n) mod 2)=A011655(n). Thus (a(n) mod 2) is periodic with the Pisano period A001175(2)=3 too.

Also, a(n)==A004090(n) modulo 2 (A004090(n)=digital sum of Fib(n)).

For general bases p>2, we have the inequality 2<=a(n)<=2p-3 (for n>2). Actually, a(n)<=3=A131319(3) for the base p=3.

FORMULA

a(n)=a(n-1)+a(n-2)-2*(floor(a(n-1)/3)+floor(a(n-2)/3)).

a(n)=floor(a(n-1)/3)+floor(a(n-2)/3)+(a(n-1)mod 3)+(a(n-2)mod 3).

a(n)=A002264(a(n-1))+A002264(a(n-2))+A010872(a(n-1))+A010872(a(n-2)).

a(n)=Fib(n)-2*sum{1<k<n, Fib(n-k+1)*floor(a(k)/3)}, where Fib(n)=A000045(n).

EXAMPLE

a(5)=3, since a(3)=2, ds_3(2)=2, a(4)=3=10(base 3),

ds_3(3)=1, and so a(5)=2+1.

CROSSREFS

Cf. A000045, A010073, A010074, A010075, A010076, A010077, A131295, A131296, A131297, A131318, A131319, A131320.

Adjacent sequences: A131291 A131292 A131293 this_sequence A131295 A131296 A131297

Sequence in context: A130633 A048198 A096006 this_sequence A102313 A007538 A025076

KEYWORD

nonn

AUTHOR

Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), Jun 27 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified May 17 13:36 EDT 2008. Contains 139908 sequences.


AT&T Labs Research