cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A258373 a(n+1) is the least number not occurring earlier such that concatenation(a(n),a(n+1)) - 1 is a palindrome; a(1)=1.

This page as a plain text file.
%I A258373 #33 Dec 23 2024 14:53:44
%S A258373 1,2,3,4,5,6,7,8,9,10,102,202,203,303,304,404,405,505,506,606,607,707,
%T A258373 708,808,809,909,910,20,103,302,204,403,305,504,406,605,507,706,608,
%U A258373 807,709,908,810,19,92,30,104,402,205,503,306,604,407,705,508,806,609,907,710,18
%N A258373 a(n+1) is the least number not occurring earlier such that concatenation(a(n),a(n+1)) - 1 is a palindrome; a(1)=1.
%H A258373 M. F. Hasler, <a href="/A258373/b258373.txt">Table of n, a(n) for n = 1..1816</a>
%H A258373 E. Angelini, <a href="https://web.archive.org/web/*/http://list.seqfan.eu/oldermail/seqfan/2015-July/015099.html">A palindrome + 1</a>, SeqFan list, July 21, 2015.
%e A258373 The concatenation of the first two terms is 12, and
%e A258373 12 - 1 = 11 is a palindrome, and similar for all subsequent terms:
%e A258373 23 - 1 = 22,
%e A258373 34 - 1 = 33,
%e A258373 ...
%e A258373 910 - 1 = 909,
%e A258373 10102 - 1 = 10101,
%e A258373 ...
%e A258373 9230 - 1 = 9229 is a palindrome, ...
%o A258373 (PARI) {S=[a=1];for(i=1,100,print1(a",");for(k=1,9e9,Vecrev(d=digits(eval(Str(a,k))-1))==d||next;setsearch(S,k)&&next;S=setunion(S,[a=k]);break))}
%K A258373 nonn,base,easy
%O A258373 1,2
%A A258373 _Eric Angelini_ and _M. F. Hasler_, Jul 23 2015