OFFSET
1,2
COMMENTS
In lunar arithmetic, numbers n with the property that the sum of the divisors of n that are <= n is equal to n.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
D. Applegate, M. LeBrun and N. J. A. Sloane, Dismal Arithmetic [Note: we have now changed the name from "dismal arithmetic" to "lunar arithmetic" - the old name was too depressing]
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
G.f.: x*(1+9*x^9)/(1-x)^2. - Bruno Berselli, May 23 2011
a(n) = 2*a(n-1) -a(n-2). - Vincenzo Librandi, Jul 12 2012
PROG
(Maxima) makelist(if n<9 then n else 10*n-81, n, 1, 70); /* Bruno Berselli, May 24 2011 */
(Magma) [n lt 9 select n else 10*n-81: n in [1..70]]; // Bruno Berselli, May 24 2011
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, May 23 2011
STATUS
approved