OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 12*n + 1, n >= 0.
a(n) = 24*n - 10 - a(n-1), (with a(0)=1). - Vincenzo Librandi, Dec 24 2010
G.f.: (1 + 11*x)/(1-x)^2. - Indranil Ghosh, Apr 05 2017
E.g.f.: (1 + 12*x)*exp(x). - G. C. Greubel, Sep 18 2019
MAPLE
seq(12*n+1, n=0..60); # G. C. Greubel, Sep 18 2019
MATHEMATICA
Array[12*#+1&, 60, 0] (* Vladimir Joseph Stephan Orlovsky, Dec 14 2009 *)
CoefficientList[Series[(1+11x)/(1-x)^2, {x, 0, 60}], x] (* Michael De Vlieger, Apr 05 2017 *)
PROG
(PARI) a(n)=12*n+1 \\ Charles R Greathouse IV, Jul 10 2016
(Python) def a(n): return 12*n + 1 # Indranil Ghosh, Apr 05 2017
(C)
#include<stdio.h>
int main(){
int n;
for(n=0; n<=100; n++)
printf("%d, ", 12*n + 1);
return 0;
} /* Indranil Ghosh, Apr 05 2017 */
(Magma) [12*n+1: n in [0..60]]; // G. C. Greubel, Sep 18 2019
(Sage) [12*n + 1 for n in (0..60)] # G. C. Greubel, Sep 18 2019
(GAP) List([0..60], n-> 12*n + 1); # G. C. Greubel, Sep 18 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved