login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A133292 Period 9: repeat 1, 1, 2, 4, 7, 2, 7, 4, 2. 3
1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2, 7, 4, 2, 1, 1, 2, 4, 7, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

For n>0, digital roots of centered 10-gonal numbers (A062786). - Colin Barker, Jan 30 2015

For n>0, also the digital roots of central polygonal numbers (the Lazy Caterer's sequence) A000124. - Peter M. Chema, Sep 17 2016

LINKS

Colin Barker, Table of n, a(n) for n = 0..1000

Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).

FORMULA

a(n) = (1/54)*{11*(n mod 9)+17*[(n+1) mod 9]+23*[(n+2) mod 9]-25*[(n+3) mod 9]+35*[(n+4) mod 9]-13*[(n+5) mod 9]-7*[(n+6) mod 9]-[(n+7) mod 9]+5*[(n+8) mod 9]}, with n>=0. - Paolo P. Lava, Oct 24 2007

G.f.: -(2*x^8+4*x^7+7*x^6+2*x^5+7*x^4+4*x^3+2*x^2+x+1) / ((x-1)*(x^2+x+1)*(x^6+x^3+1)). - Colin Barker, Apr 04 2015

MATHEMATICA

PadRight[{}, 111, {1, 1, 2, 4, 7, 2, 7, 4, 2}] (* Harvey P. Dale, Apr 29 2012 *)

PROG

(PARI) a(n)=[1, 1, 2, 4, 7, 2, 7, 4, 2][n%9+1] \\ Charles R Greathouse IV, Jun 02 2011

(PARI) Vec(-(2*x^8+4*x^7+7*x^6+2*x^5+7*x^4+4*x^3+2*x^2+x+1)/((x-1)*(x^2+x+1)*(x^6+x^3+1)) + O(x^100)) \\ Colin Barker, Apr 04 2015

CROSSREFS

Cf. A062786.

Sequence in context: A134974 A244262 A166531 * A126218 A086330 A098283

Adjacent sequences:  A133289 A133290 A133291 * A133293 A133294 A133295

KEYWORD

nonn,easy,less

AUTHOR

Paul Curtz, Oct 17 2007

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

License Agreements, Terms of Use, Privacy Policy .

Last modified June 28 16:56 EDT 2017. Contains 288839 sequences.