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.

A272800 Flavius Josephus factor of n.

Original entry on oeis.org

0, 2, 0, 2, 3, 2, 0, 2, 4, 2, 3, 2, 0, 2, 5, 2, 3, 2, 0, 2, 4, 2, 3, 2, 6, 2, 0, 2, 3, 2, 7, 2, 4, 2, 3, 2, 5, 2, 0, 2, 3, 2, 8, 2, 4, 2, 3, 2, 0, 2, 6, 2, 3, 2, 5, 2, 4, 2, 3, 2, 9, 2, 0, 2, 3, 2, 10, 2, 4, 2, 3, 2, 7, 2, 5, 2, 3, 2, 0, 2, 4, 2, 3, 2, 6, 2
Offset: 1

Views

Author

Max Barrentine, May 06 2016

Keywords

Comments

This sequence is analogous to the smallest prime factor of n. If n is a member of A000960, a(n) = 0, otherwise a(n) = the (k+1)-st step that rejects n from Flavius Josephus' sieve.
The n-values of records of this sequence are given by A100287 (see 2004 comment by Sloane).

Crossrefs

Programs

  • Sage
    # Function that returns an array of the first n terms.
    def A272800(n):
        A, B, k = [0]*n, range(n), 1
        while kDanny Rorabaugh, May 13 2016