OFFSET
1,1
COMMENTS
All terms are divisible by 9. - Robert Israel, May 12 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..2500
EXAMPLE
729 is in the sequence because 729*730 = 532170 and 729*728 = 530712.
MAPLE
filter:= n -> sort(convert(n*(n+1), base, 10))=sort(convert(n*(n-1), base, 10)):
select(filter, [seq(i, i=9..200000, 9)]); # Robert Israel, May 11 2020
MATHEMATICA
okQ[n_]:=Module[{idn=IntegerDigits[n^2+n]}, Sort[idn]==Sort[IntegerDigits[n^2-n]]]; Select[Range[100000], okQ]
PROG
(PARI) isok(k) = vecsort(digits(k*(k+1))) == vecsort(digits(k*(k-1))); \\ Michel Marcus, May 12 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved