OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,10).
FORMULA
MAPLE
seq(coeff(series((1+4*x+7*x^2)/(1-10*x^3), x, n+1), x, n), n = 0..30); # G. C. Greubel, Nov 21 2019
MATHEMATICA
Flatten[Table[FromDigits[PadRight[{i}, n, 0]], {n, 10}, {i, {1, 4, 7}}]] (* or *) LinearRecurrence[{0, 0, 10}, {1, 4, 7}, 30] (* Harvey P. Dale, Jun 06 2015 *)
PROG
(PARI) my(x='x+O('x^30)); Vec((1+4*x+7*x^2)/(1-10*x^3)) \\ G. C. Greubel, Nov 21 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1+4*x+7*x^2)/(1-10*x^3) )); // G. C. Greubel, Nov 21 2019
(Sage)
def A135262_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((1+4*x+7*x^2)/(1-10*x^3)).list()
A135262_list(30) # G. C. Greubel, Nov 21 2019
(GAP) a:=[1, 4, 7];; for n in [4..30] do a[n]:=10*a[n-3]; od; a; # G. C. Greubel, Nov 21 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 01 2007
EXTENSIONS
Name edited by R. J. Mathar, Jul 22 2008
STATUS
approved