login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A332112 a(n) = (10^(2n+1)-1)/9 + 10^n. 17
2, 121, 11211, 1112111, 111121111, 11111211111, 1111112111111, 111111121111111, 11111111211111111, 1111111112111111111, 111111111121111111111, 11111111111211111111111, 1111111111112111111111111, 111111111111121111111111111, 11111111111111211111111111111, 1111111111111112111111111111111 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(0) = 2 is the only prime in this sequence, since all other terms factor as a(n) = R(n+1)*(10^n+1), where R(n) = (10^n-1)/9.
LINKS
FORMULA
a(n) = A138148(n) + 2*10^n = A002275(2n+1) + 10^n.
G.f.: (2 - 101*x)/((1 - x)(1 - 10*x)(1 - 100*x)).
a(n) = 111*a(n-1) - 1110*a(n-2) + 1000*a(n-3) for n > 2.
MAPLE
A332112 := n -> (10^(2*n+1)-1)/9+10^n;
MATHEMATICA
Array[ (10^(2 # + 1)-1)/9 + 10^# &, 15, 0]
PROG
(PARI) apply( {A332112(n)=10^(n*2+1)\9*1+10^n}, [0..15])
(Python) def A332112(n): return 10**(n*2+1)//9+10**n
CROSSREFS
Cf. A002275 (repunits R_n = (10^n-1)/9), A011557 (10^n).
Cf. A138148 (cyclops numbers with binary digits), A002113 (palindromes).
Cf. A332132 .. A332192 (variants with different repeated digit 3, ..., 9).
Cf. A332113 .. A332119 (variants with different middle digit 3, ..., 9).
Cf. A331860 & A331861 (indices of primes in non-palindromic variants).
Sequence in context: A042799 A281983 A217023 * A074490 A056638 A222873
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Feb 09 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 26 20:34 EDT 2024. Contains 372004 sequences. (Running on oeis4.)