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.

Previous Showing 11-15 of 15 results.

A112534 Number of digits in A110778(n).

Original entry on oeis.org

1, 1, 1, 3, 3, 21, 7, 31, 5, 480, 1526, 294, 1615
Offset: 1

Views

Author

Joshua Zucker, Jan 12 2006

Keywords

Examples

			A110778(4) = 777 hence a(4) = 3.
		

Crossrefs

Programs

  • Mathematica
    id[n_]:=IntegerDigits[n]; f[x_,y_]:=FromDigits[Flatten[Append[{x},y]]]; a[x_,y_]:=NestWhile[f[id[#],y]&,f[id[x],y],!PrimeQ[#]&]; le[n_]:=Length[id[n]]; d[x_,y_]:=x-FromDigits[PadRight[id[y],le[x]]]; x=3; t={1}; Do[y=a[x,7]; AppendTo[t,le[d[y,x]]]; x=a[y,3]; AppendTo[t,le[d[x,y]]],{n,5}]; t (* Jayanta Basu, May 20 2013 *)
  • Python
    from sympy import isprime
    from itertools import count, islice
    def agen(): # generator of terms
        s = ""
        while True:
            for d in "37":
                for k in count(1):
                    if isprime(int(s+d*k)): break
                yield k
                s += d*k
    print(list(islice(agen(), 10))) # Michael S. Branicky, Aug 23 2022

Extensions

Typo in example fixed by Sean A. Irvine, Mar 21 2010
a(11)-a(12) from Sean A. Irvine, Mar 22 2010
a(13) from Michael S. Branicky, Aug 23 2022

A110790 Copies of 3 and 1 alternately such that every partial concatenation is a prime.

Original entry on oeis.org

3, 1, 3, 111111111111111, 33333, 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111, 3333, 111111111111111111111111111, 33333
Offset: 1

Views

Author

Amarnath Murthy, Aug 13 2005

Keywords

Comments

The next term has 168 digits. - Charles R Greathouse IV, Sep 29 2008

Examples

			3, 31, 313, 313111111111111111, ... are all prime.
		

Crossrefs

Cf. A110791 (digit lengths)

Extensions

a(6)-a(9) from_Charles R Greathouse IV_, Sep 29 2008

A110791 Number of digits in A110790(n).

Original entry on oeis.org

1, 1, 1, 15, 5, 87, 4, 27, 5, 168, 27, 478, 70
Offset: 1

Views

Author

Amarnath Murthy, Aug 13 2005

Keywords

Comments

Next term is >= 478. [From David Wasserman, Jan 06 2009]

Examples

			3, 31, 313, 313111111111111111, ... are all prime.
		

Crossrefs

Extensions

More terms from David Wasserman, Jan 06 2009
Two more terms from Sean A. Irvine, Mar 22 2010

A110792 Copies of 7,3 and 1 cyclically such that every partial concatenation is a prime.

Original entry on oeis.org

7, 3, 1111111, 777777777, 33, 11111111111111111111111111111111111111111111111111111111111111111, 7777777777777777777, 33333333333333333333, 111111111111111111111111111111111111111
Offset: 1

Views

Author

Amarnath Murthy, Aug 13 2005

Keywords

Examples

			7,73,731111111,...are all prime.
		

Crossrefs

Cf. A110793 (digit lengths).
Other combinations: A110774, A110776, A110778, A110780, A110782, A110788, A110790.

Extensions

More terms from Sean A. Irvine, Mar 21 2010
a(9) from Jon E. Schoenfield, Jul 11 2010

A110793 Number of digits in A110792(n).

Original entry on oeis.org

1, 1, 7, 9, 2, 65, 19, 20, 39, 54, 228, 231, 149, 630, 1641, 8794, 12907
Offset: 1

Views

Author

Amarnath Murthy, Aug 13 2005

Keywords

Crossrefs

Extensions

a(6)-a(15) from Sean A. Irvine, Mar 22 2010
a(16) from Michael S. Branicky, Jun 23 2023
a(17) from Michael S. Branicky, Nov 19 2024
Previous Showing 11-15 of 15 results.