OFFSET
0,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,-1).
FORMULA
a(n) = n*10/gcd(n, 10).
G.f.: 10*x*(1 +x +3*x^2 +2*x^3 +x^4 +3*x^5 +7*x^6 +4*x^7 +9*x^8 +x^9 +9*x^10 +4*x^11 +7*x^12 +3*x^13 +x^14 +2*x^15 +3*x^16 +x^17 +x^18)/(1 -x^10)^2. - Robert Israel, Feb 23 2016
Sum_{k=1..n} a(k) ~ (63/20) * n^2. - Amiram Eldar, Nov 26 2022
MAPLE
q:= [seq(10/igcd(i, 10), i=1..10)]:
[0, seq(seq((10*i+j)*q[j], j=1..10), i=0..10)]; # Robert Israel, Feb 23 2016
MATHEMATICA
a[n_] := LCM[n, 10]; Array[a, 60, 0] (* Amiram Eldar, Nov 26 2022 *)
PROG
(Sage) [lcm(n, 10)for n in range(0, 57)] # Zerinvary Lajos, Jun 07 2009
(Magma) [Lcm(n, 10): n in [0..100]]; // Vincenzo Librandi, Apr 18 2011
(PARI) a(n) = lcm(n, 10); \\ Michel Marcus, Feb 23 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mitch Harris, Jun 18 2005
STATUS
approved