|
|
A082801
|
|
Smallest multiple of 6 beginning with n.
|
|
7
|
|
|
12, 24, 30, 42, 54, 6, 72, 84, 90, 102, 114, 12, 132, 144, 150, 162, 174, 18, 192, 204, 210, 222, 234, 24, 252, 264, 270, 282, 294, 30, 312, 324, 330, 342, 354, 36, 372, 384, 390, 402, 414, 42, 432, 444, 450, 462, 474, 48, 492, 504, 510, 522, 534, 54, 552
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,2,0,0,0,0,0,-1).
|
|
FORMULA
|
G.f.: 6*x*(2 +4*x +5*x^2 +7*x^3 +9*x^4 +x^5 +8*x^6 +6*x^7 +5*x^8 +3*x^9 +x^10) / ((1-x)^2*(1+x)^2*(1-x+x^2)^2*(1+x+x^2)^2). [Bruno Berselli, Nov 12 2012]
|
|
MATHEMATICA
|
Table[If[Divisible[n, 6], n, First[Select[10n+{0, 2, 4}, Divisible[ #, 6]&]]], {n, 100}] (* Harvey P. Dale, Nov 12 2012 *)
Table[If[Mod[n, 6]==0, n, If[Mod[10 n, 6]==0, 10 n, 10 n + 6 - Mod[10 n, 6]]], {n, 60}] (* Vincenzo Librandi, Feb 10 2014 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|