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!)
A166522 a(n) = 7*n - a(n-1), with a(1) = 1. 1
1, 13, 8, 20, 15, 27, 22, 34, 29, 41, 36, 48, 43, 55, 50, 62, 57, 69, 64, 76, 71, 83, 78, 90, 85, 97, 92, 104, 99, 111, 106, 118, 113, 125, 120, 132, 127, 139, 134, 146, 141, 153, 148, 160, 155, 167, 162, 174, 169, 181, 176, 188, 183, 195, 190, 202, 197, 209, 204 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
G.f. -x*(-1-12*x+6*x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Mar 08 2011
a(n) = a(n-1) + a(n-2) - a(n-3), a(1)=1, a(2)=13, a(3)=8. - Harvey P. Dale, Jun 07 2012
E.g.f.: (1/4)*(17*exp(-x) + 7*(1 + 2*x)*exp(x) - 24). - G. C. Greubel, May 16 2016
EXAMPLE
For n=2, a(2)=7*2-1=13; n=3, a(3)=7*3-13=8; n=4, a(4)=28-8=20.
MATHEMATICA
RecurrenceTable[{a[1]==1, a[n]==7n-a[n-1]}, a, {n, 60}] (* or *) LinearRecurrence[{1, 1, -1}, {1, 13, 8}, 60] (* Harvey P. Dale, Jun 07 2012 *)
CROSSREFS
Sequence in context: A302456 A303238 A357656 * A206610 A250031 A301825
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 16 2009
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 25 21:09 EDT 2024. Contains 371989 sequences. (Running on oeis4.)