OFFSET
1,3
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..128
Charles W. Trigg, Infinite sequences of palindromic triangular numbers, The Fibonacci Quarterly, Vol. 12, No. 2 (1974), pp. 209-212.
Maciej Ulas, On certain diophantine equations related to triangular and tetrahedral numbers, arXiv:0811.2477 [math.NT], 2008.
EXAMPLE
MATHEMATICA
t[n_] := n*(n + 1)/2; Select[t /@ Range[0, 2*10^4], PalindromeQ[IntegerDigits[#, 2]] &]
PROG
(Python)
from itertools import count, islice
def agen():
for i in count(0):
t = i*(i+1)//2
b = bin(t)[2:]
if b == b[::-1]:
yield t
print(list(islice(agen(), 37))) # Michael S. Branicky, Jan 28 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Jan 28 2022
STATUS
approved