|
|
A082800
|
|
Smallest multiple of 4 beginning with n.
|
|
7
|
|
|
12, 20, 32, 4, 52, 60, 72, 8, 92, 100, 112, 12, 132, 140, 152, 16, 172, 180, 192, 20, 212, 220, 232, 24, 252, 260, 272, 28, 292, 300, 312, 32, 332, 340, 352, 36, 372, 380, 392, 40, 412, 420, 432, 44, 452, 460, 472, 48, 492, 500, 512, 52, 532, 540, 552, 56
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: 4*x*(3 + 5*x + 8*x^2 + x^3 + 7*x^4 + 5*x^5 + 2*x^6) / ((1 - x)^2*(1 + x)^2*(1 + x^2)^2).
a(n) = 2*a(n-4) - a(n-8) for n>8.
(End)
|
|
MATHEMATICA
|
Table[If[Mod[n, 4]==0, n, If[Mod[10 n, 4]==0, 10 n, 10 n + 4 - Mod[10 n, 4]]], {n, 56}] (* Ray Chandler, Feb 09 2014 *)
|
|
PROG
|
(PARI) Vec(4*x*(3 + 5*x + 8*x^2 + x^3 + 7*x^4 + 5*x^5 + 2*x^6) / ((1 - x)^2*(1 + x)^2*(1 + x^2)^2) + O(x^60)) \\ Colin Barker, Mar 23 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|