OFFSET
1,1
COMMENTS
Cases in which y has leading zeros are not considered.
EXAMPLE
48 = 4//8 = 8^2 - 4^2;
10101 = 10//101 = 101^2 - 10^2;
16128 = 16//128 = 128^2 - 16^2.
MAPLE
Lton := proc(L) add( op(i, L)*10^(i-1), i=1..nops(L)) ; end:
for n from 10 do dgs := convert(n, base, 10) ; for spli from 1 to nops(dgs)-1 do ydgs := [op(1..spli, dgs)] ; xdgs := [op(spli+1..nops(dgs), dgs)] ; if op(-1, ydgs) <> 0 then x := Lton(xdgs) ; y := Lton(ydgs) ; if y^2-x^2 = n then print(n) ; fi; fi; od: od: # R. J. Mathar, Jul 16 2009
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jul 11 2009
EXTENSIONS
keyword:base added, definition rephrased, values sorted by R. J. Mathar, Jul 16 2009
More terms from Sean A. Irvine, Nov 19 2009
STATUS
approved