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.

A056526 First differences of Flavius Josephus's sieve.

Original entry on oeis.org

2, 4, 6, 6, 8, 12, 10, 14, 16, 12, 18, 24, 14, 34, 26, 16, 30, 36, 18, 42, 38, 12, 60, 22, 48, 38, 46, 36, 60, 54, 44, 36, 84, 22, 60, 84, 18, 78, 72, 60, 38, 112, 12, 96, 114, 26, 88, 92, 34, 90, 138, 26, 82, 98, 112, 54, 170, 36, 60, 168, 52, 128, 52, 128, 94, 108, 90, 188
Offset: 1

Views

Author

Henry Bottomley, Jun 16 2000

Keywords

Comments

Also run lengths in A100617. - Reinhard Zumkeller, Jan 14 2015

Examples

			Flavius's sieve starts 1,3,7,13,19,27,39,49 so first differences are 2,4,6,6,8,12,10.
		

Crossrefs

Cf. A000960 for definition, A139363 (records), A139364 (where records occur).

Programs

  • Haskell
    a056526 n = a056526_list !! (n-1)
    a056526_list = zipWith (-) (tail a000960_list) a000960_list
    -- Reinhard Zumkeller, Jan 14 2015

Formula

a(n) = A000960(n+1) - A000960(n).