OFFSET
1,1
COMMENTS
If it exists, a(11) > 10^7.
PROG
(Python)
for n in range(10**6):
..s, t = str(n), str(n+1)
..s3, t3 = str(n**3), str((n+1)**3)
..c = 0
..for i in s:
....if s3.count(i):
......c += 1
......break
..for j in t:
....if t3.count(j):
......c += 1
......break
..if not c:
....print(n, end=', ')
(PARI)
for(n=1, 10^6, s=digits(n); t=digits(n+1); s3=digits(n^3); t3=digits((n+1)^3); if(#vecsort(concat(s, s3), , 8)==#vecsort(s, , 8)+#vecsort(s3, , 8)&&#vecsort(concat(t, t3), , 8)==#vecsort(t, , 8)+#vecsort(t3, , 8), print1(n, ", ")))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Sep 25 2014
STATUS
approved