OFFSET
1,1
COMMENTS
Leading zeros in b, c, and d are allowed.
Many numbers come in pairs, like: (220, 221), (715, 716), (140017877, 140017878).
Some numbers are also member of A259379, for example: 287, 715, 1095 and also the pair (140017877, 140017878).
LINKS
Pieter Post, Table of n, a(n) for n = 1..239
EXAMPLE
198^4 = 1536953616 and 198 = abs (1 - 536 + 953 - 616 ).
8905^4 = 6288335365950625 and 8905 = abs (6288 - 3353 + 6595 - 0625 ).
MATHEMATICA
test[n_] := Block[{L=IntegerLength@ n, v}, v = IntegerDigits[ n^4, 10^L]; Length@ v == 4 && Abs@ Total[ {1, -1, 1, -1} v] == n]; Select[Range[10^5], test] (* Giovanni Resta, Aug 12 2015 *)
PROG
(Python)
def modb(n, m):
...kk = 0
....l=1
....while n > 0:
........na=int(n%m)
........l=l+1
........kk= kk+((-1)**l)*na
........n =int(n//m)
....return abs(kk)
for n in range (100, 10**9):
....ll= len(str(n))
....if modb(n**4, 10**ll)==n:
.........print (n)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pieter Post, Jul 22 2015
STATUS
approved