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.

A347680 Beginning with 3, least prime > a(n-1) using only digits 2 and 3 such that every concatenation a(1),a(2),... is a palindrome.

Original entry on oeis.org

3, 23, 3323, 233323, 22223233323233323, 223333322323332323332322223233323233323, 3322233323332323332322223233323233323223333322323332323332322223233323233323
Offset: 1

Views

Author

N. J. A. Sloane and Chai Wah Wu, Sep 15 2021

Keywords

Comments

a(11) has 1258 decimal digits.

Examples

			3, 323, 3233323,... are all palindromes.
		

Crossrefs

Cf. A002113.

Programs

  • Mathematica
    a[1]=3;a[n_]:=a[n]=(t=1;While[!IntegerQ[k=Min[FromDigits/@Select[Select[Tuples[{2,3},t],PrimeQ@FromDigits@#&],PalindromeQ@FromDigits@Flatten[{IntegerDigits/@Array[a,n-1],#}]&]]]||k<=a[n-1],t++];k);Array[a,5] (* Giorgos Kalogeropoulos, Sep 15 2021 *)