OFFSET
2,1
COMMENTS
REFERENCES
Vijayshankar Shivshankar Joshi, Contributions to the theory of power-free integers and self-numbers, Ph.D. dissertation, Gujarat University, Ahmedabad (India), October, 1973.
József Sándor and Borislav Crstici, Handbook of Number theory II, Kluwer Academic Publishers, 2004, Chapter 4, p. 384-386.
LINKS
Eric Weisstein's World of Mathematics, Self Number.
Wikipedia, Self number.
FORMULA
a(2*n+1) = a(2*n) for n >= 2.
EXAMPLE
MATHEMATICA
s[n_, b_] := n + Plus @@ IntegerDigits[n, b]; selfQ[n_, b_] := AllTrue[Range[n, n - (b - 1) * Ceiling @ Log[b, n], -1], s[#, b] != n &]; a[2] = 4; a[b_] := a[b] = Module[{n = a[b - 1]}, While[! AllTrue[Range[2, b], selfQ[n, #] &], n++]; n]; Array[a, 10, 2]
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Amiram Eldar, May 21 2021
STATUS
approved