login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A109841
a(n) is the minimal j >= n such that the sum of consecutive integers from n to j is a palindrome.
2
1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 11, 45, 24, 19, 18, 17, 27, 29, 34, 26, 23, 22, 30, 32, 43, 31, 28, 35, 40, 44, 44, 34, 33, 45, 56, 38, 106, 39, 49, 61, 73, 50, 58, 44, 56, 48, 54, 53, 50, 51, 60, 59, 58, 57, 55, 58, 64, 63, 62, 61, 69, 72, 68, 67, 66, 66, 79, 100, 72, 71, 83, 78
OFFSET
1,2
LINKS
EXAMPLE
a(14)=19 because 14 + 15 + 16 + 17 + 18 + 19 = 99.
MATHEMATICA
sci[n_]:=Module[{k=n}, While[!PalindromeQ[Total[Range[n, k]]], k++]; k]; Array[sci, 80] (* Harvey P. Dale, Jul 03 2023 *)
CROSSREFS
Cf. A109842.
Sequence in context: A248899 A029970 A143265 * A174234 A163807 A118766
KEYWORD
base,easy,nonn
AUTHOR
Jason Earls, Jul 05 2005
STATUS
approved