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.

A305234 Number of successors of n having the same value of A001221 as n.

Original entry on oeis.org

0, 3, 2, 1, 0, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 3, 2, 1, 0, 0, 2, 1, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 2, 1, 0, 0, 4, 3, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 1
Offset: 1

Views

Author

Felix Fröhlich, May 28 2018

Keywords

Examples

			For n = 2: 3, 4 and 5 have the same number of distinct prime divisors as 2, but 6 does not, so a(2) = 3.
		

Crossrefs

Programs

  • PARI
    a(n) = my(k=n+1, i=0); while(omega(k)==omega(n), i++; k++); i