OFFSET
0,1
COMMENTS
In base 3 lunar arithmetic, sum of divisors of n = n (an analog of perfect numbers).
LINKS
Zhuorui He, Table of n, a(n) for n = 0..10000
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]
FORMULA
a(n) = 10*A007089(n) + 2. - Zhuorui He, Nov 09 2025
MATHEMATICA
FromDigits[IntegerDigits[#, 3]]&/@(3Range[0, 80]+2) (* Harvey P. Dale, Jun 07 2025 *)
PROG
(PARI) a(n)=fromdigits(digits(3 * n + 2, 3)) \\ Zhuorui He, Nov 09 2025
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane, May 15 2011
EXTENSIONS
Offset changed by Zhuorui He, Nov 09 2025
STATUS
approved
