|
|
A279084
|
|
Numbers k such that reverse(T(k)) = T(reverse(k)) where T(k) is the k-th triangular number.
|
|
0
|
|
|
0, 1, 2, 3, 11, 77, 363, 1111, 2662, 24662, 26642, 111111, 246642, 11111111, 363474363, 2664444662
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
The k-th triangular number is T(k) = k*(k+1)/2 = A000217(k).
This sequence includes all numbers k such that both k and T(k) are palindromes (A008510); it also includes at least one pair of nonpalindromes (see Example section). It includes 11, 1111, 111111, and 11111111, but not 1111111111.
|
|
LINKS
|
|
|
EXAMPLE
|
Since reverse(T(11)) = reverse(66) = 66 = T(11) = T(reverse(11)), 11 is in the sequence.
Since reverse(T(24662)) = reverse(304119453) = 354911403 = T(26642) = T(reverse(24662)), 24662 is in the sequence (and so is its reverse, 26642).
|
|
PROG
|
(PARI) rev(n) = eval(concat(Vecrev(Str(n))));
trg(n) = n*(n+1)/2;
isok(n) = rev(trg(n)) == trg(rev(n)); \\ Michel Marcus, Jan 14 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|