OFFSET
1,3
COMMENTS
For terms > 1, the exponents k are 2, 4, 3, 4, 4, 7, 8, 8, 11, 11, 21, 11, 11, 11, 11, 13, 15, 16, 22, 21, 21.
EXAMPLE
48 = abs(4^2 - 8^2), 5920 = abs(5^4 - 9^4 + 2^4 - 0^4).
PROG
(Python)
def moda(n, a)
kk, j = 0, 1
while n > 0:
kk= kk-j*(n%10)**a
n, j =int(n//10), -j
return abs(kk)
for i in range (0, 10**12):
for t in range(2, 21):
if i==moda(i, t):
print (i, t, moda(i, t))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pieter Post, Apr 01 2020
EXTENSIONS
a(19)-a(24) from Giovanni Resta, Apr 02 2020
STATUS
approved