Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A140132
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A140132 a(n)=Sum_digits{a(n-1)+a(n-2)+Sum_digits[a(n-1)]+Sum_digits[a(n-2)]}, with a(0)=0 and a(1)=1. +0
2
0, 1, 2, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7, 8, 3, 4, 5, 9, 10, 11, 6, 7 (list; graph; listen)
OFFSET

0,3

COMMENT

After the first three terms the sequence is periodic: 6,7,8,3,4,5,9,10,11.

FORMULA

a(n)=(1/12)*{-3*(n mod 9)+[(n+1) mod 9]+[(n+2) mod 9]+9*[(n+3) mod 9]+[(n+4) mod 9]+[(n+5) mod 9]+9*[(n+6) mod 9]+[(n+7) mod 9]+[(n+8) mod 9]}-9*{[C(2*n,n) mod 2]+[C((n+1)^2,n+3) mod 2]+[C((n+12)^4,n+14) mod 2]}, with n>=0

MAPLE

P:=proc(n) local a, b, i, k, w, x, y; a:=0; b:=1; print(a); print(b); for i from 1 by 1 to n do w:=0; k:=a; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; x:=0; k:=b; while k>0 do x:=x+k-(trunc(k/10)*10); k:=trunc(k/10); od; c:=b; y:=0; k:=a+b+w+x; while k>0 do y:=y+k-(trunc(k/10)*10); k:=trunc(k/10); od; a:=b; b:=y; print(y); od; end: P(100);

CROSSREFS

Cf. A016052, A047892, A047897-A047900, A047902, A047903, A055263, A134268, A135210, A140131.

Sequence in context: A061352 A039926 A035569 this_sequence A096909 A073005 A091942

Adjacent sequences: A140129 A140130 A140131 this_sequence A140133 A140134 A140135

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), May 09 2008

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 November 21 14:49 EST 2008. Contains 150807 sequences.


AT&T Labs Research