OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..100
EXAMPLE
3240 is a triangular number, 0324 is a square, so 3240 belongs to this sequence.
MAPLE
a:=proc(n) local n2, L: n2:=convert((1/2)*n*(n+1), base, 10): L:=nops(n2): if type(sqrt((1/20)*n*(n+1)-(1/10)*n2[1]+n2[1]*10^(L-1)), integer)=true then (1/2)*n*(n+1) else end if end proc: seq(a(n), n=1..10^7); # Emeric Deutsch, Oct 17 2007
MATHEMATICA
Select[Table[n(n + 1)/2, {n, 1000000}], IntegerQ[Sqrt[ FromDigits[ Prepend[Drop[IntegerDigits[ # ], -1], Last[IntegerDigits[ # ]]]]]] &]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Tanya Khovanova, Oct 09 2007
EXTENSIONS
More terms from Emeric Deutsch, Oct 17 2007
Offset corrected and a(15)-a(19) from Donovan Johnson, Jan 31 2011
a(20) from Giovanni Resta, May 11 2016
STATUS
approved