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.

Showing 1-3 of 3 results.

A093672 Primes of the form (7*10^k - 1)/3.

Original entry on oeis.org

2, 23, 233, 2333, 23333, 23333333333, 23333333333333333, 23333333333333333333333, 233333333333333333333333333333333333333333333333333333, 23333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
Offset: 1

Views

Author

Rick L. Shepherd, Apr 08 2004

Keywords

Comments

Primes of the form 2*10^k + 3*R_k, where R_k is the repunit (A002275) of length k.

Crossrefs

Cf. A002275, A056701 (corresponding values of k), A198972.

Programs

  • Maple
    select(isprime,[seq(7*10^k-1)/3,k=0..100)]): # Robert Israel, Aug 07 2014
  • Mathematica
    Select[(7 * 10^Range[0, 19] - 1)/3, PrimeQ] (* Alonso del Arte, Aug 07 2014 *)
    Select[Table[FromDigits[PadRight[{2},n,3]],{n,100}],PrimeQ] (* Harvey P. Dale, Oct 04 2015 *)

Formula

a(n) = (7*10^A056701(n) - 1)/3 = A198972(A056701(n)). - Elmo R. Oliveira, Jun 14 2025

Extensions

Simpler definition from Alonso del Arte, Aug 07 2014
One more term (a(10)) from Harvey P. Dale, Oct 04 2015

A198699 a(n) = 7*10^n - 1.

Original entry on oeis.org

6, 69, 699, 6999, 69999, 699999, 6999999, 69999999, 699999999, 6999999999, 69999999999, 699999999999, 6999999999999, 69999999999999, 699999999999999, 6999999999999999, 69999999999999999, 699999999999999999, 6999999999999999999, 69999999999999999999, 699999999999999999999
Offset: 0

Views

Author

Vincenzo Librandi, Oct 29 2011

Keywords

Crossrefs

Programs

  • Magma
    [7*10^n-1: n in [0..30]];
  • Mathematica
    NestList[10#+9&,6,20] (* or *) LinearRecurrence[{11,-10},{6,69},20] (* Harvey P. Dale, Dec 29 2013 *)

Formula

a(n) = 10*a(n-1) + 9.
a(n) = 11*a(n-1) - 10*a(n-2), n>1.
G.f.: (6+3*x)/((10*x-1)*(x-1)). - R. J. Mathar, Oct 29 2011
From Elmo R. Oliveira, Jun 14 2025: (Start)
E.g.f.: exp(x)*(7*exp(9*x) - 1).
a(n) = 3*A198972(n). (End)

A290425 Primes p such that the reverse of 4*p is the nextprime(p+1).

Original entry on oeis.org

23, 233, 2333, 23333
Offset: 1

Views

Author

David James Sycamore, Jul 31 2017

Keywords

Comments

From David A. Corneth, Aug 02 2017: (Start)
23333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 is a term.
Terms start with 2 and end in 3. Proof (for base 10):
Let d[1] be the first digit of term p. Then 1 <= d[1] <= 9. Let r be the reverse of 4*p. If d[1] > 2 then r is too large to be nextprime(p + 1). if p = 1 then 4*p starts with 5 or 6 i.e. r ends in 5 or 6. No terms can match these conditions so d[1] = 2. If d[1] = 2 then p ends in 3 or 8. As primes don't end in 8, p ends in 3. (End)

Examples

			p(9)=23, 4*23=92;  29=p(10).
		

Crossrefs

Programs

  • Mathematica
    Select[Prime@ Range[10^6], NextPrime@ # == IntegerReverse[4 #] &] (* Michael De Vlieger, Aug 02 2017 *)
  • PARI
    is(n) = isprime(n) && fromdigits(Vecrev(digits(4*n))) == nextprime(n+1) \\ David A. Corneth, Aug 02 2017
Showing 1-3 of 3 results.