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-2 of 2 results.

A036979 Primes arising in A036978.

Original entry on oeis.org

11, 13, 17, 19, 1117, 1213, 1217, 23, 1319, 1511, 1613, 1619, 1811, 1913, 29, 31, 2113, 111211, 111217, 1123, 111317, 111611, 111913, 1129, 121013, 121019, 2213, 1223, 121711, 1229, 131011, 1321, 131113, 131213, 2311, 131413, 131519, 131611
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

Extensions

Missing a(19) inserted by Sean A. Irvine, Dec 03 2020

A037047 Starting at n, "say what you see"; sequence gives number of primes obtained before first composite number appears.

Original entry on oeis.org

1, 0, 1, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Keywords

Comments

If n itself is a prime, it is not included in the count. - Antti Karttunen, Feb 13 2019

Examples

			1 -> 11 (prime) -> 21 (composite), so a(1) = 1.
		

Crossrefs

Programs

  • PARI
    A045918(a) = { my(c=1); for(j=2, #a=Vec(Str(a)), if(a[j-1]==a[j], a[j-1]=""; c++, a[j-1]=Str(c, a[j-1]); c=1)); a[#a]=Str(c, a[#a]); eval(concat(a)) }; \\ From A045918 by M. F. Hasler, Jan 27 2012
    A037047(n) = if(1==n,n,my(c=0); while(1, n = A045918(n); if(isprime(n), c++, return(c)))); \\ Antti Karttunen, Feb 13 2019

Extensions

More terms from Antti Karttunen, Feb 13 2019
Showing 1-2 of 2 results.