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

A383891 a(n) is the length of chunks of the prime number sequence such that each chunk’s sum of reciprocals is no less than 1/n, chunks being consecutive and of minimal length, for n>=2.

Original entry on oeis.org

1, 1, 2, 3, 5, 8, 13, 22, 36, 60, 100, 168, 284, 482, 819, 1397, 2389, 4096, 7044, 12137, 20956, 36259
Offset: 2

Views

Author

Xiaoliang Zhang, May 13 2025

Keywords

Comments

It is curious that the initial terms look like the Fibonacci sequence (A000045) or the 1-dimension sandpile sequence (A186085).

Examples

			1/2 <= 1/2, so a(2) = 1.
1/3 <= 1/3, so a(3) = 1.
1/4 <= 1/5 + 1/7, so a(4) = 2.
1/5 <= 1/11 + 1/13 + 1/17, so a(5) = 3.
1/6 <= 1/19 + 1/23 + 1/29 + 1/31 + 1/37, so a(6) = 5.
		

Crossrefs

Cf. A000040.

Programs

  • Haskell
    import Data.Numbers.Primes (primes)
    import Data.Ratio ((%))
    list = map length (splitBySum (reciprocals [2 ..]) (reciprocals primes))
    reciprocals = map (1 %)
    splitBySum (x : xs) a = a1 : splitBySum xs a2 where
      (a1, a2) = splitAt (len + 1) a
      len = length (takeWhile (< x) (scanl1 (+) a))
Previous Showing 11-11 of 11 results.