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

A383970 Inventory sequence: record the number of prior terms such that if 2 then 4, then 6,... are added the result is a prime. Reset the count at each term = 0.

Original entry on oeis.org

0, 1, 1, 2, 0, 4, 2, 2, 0, 5, 2, 3, 2, 3, 3, 4, 5, 4, 3, 2, 2, 6, 6, 2, 2, 4, 4, 6, 6, 4, 4, 2, 2, 4, 2, 2, 6, 6, 2, 2, 4, 4, 6, 6, 2, 2, 4, 4, 4, 2, 2, 4, 2, 0, 12, 6, 4, 6, 6, 4, 6, 6, 4, 4, 2, 2, 6, 6, 2, 2, 4, 4, 6, 6, 4, 4, 2, 2, 4, 2, 2, 6, 6, 2, 2, 4, 4
Offset: 1

Views

Author

David James Sycamore, May 16 2025

Keywords

Examples

			Initially there are no terms in the sequence which satisfy any condition so a(1) = 0, whereupon the count is reset. Now count the number of prior terms such that the addition of 2 gives a prime. Since 0 + 2 = 2 is prime, a(2) = 1, and we increment from 2 to 4 finding that 1+4 = 5 is prime thus a(3) = 1. Since adding 6 to all prior terms gives 6,7,7 two of which are prime, we have a(4) = 2. Adding 8 to all prior terms results in 8,9,10,8 which contains no primes, so a(5) = 0; and so on.
		

Crossrefs

Programs

Showing 1-1 of 1 results.