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.

A046666 a(n) = n - (smallest prime dividing n).

Original entry on oeis.org

0, 0, 2, 0, 4, 0, 6, 6, 8, 0, 10, 0, 12, 12, 14, 0, 16, 0, 18, 18, 20, 0, 22, 20, 24, 24, 26, 0, 28, 0, 30, 30, 32, 30, 34, 0, 36, 36, 38, 0, 40, 0, 42, 42, 44, 0, 46, 42, 48, 48, 50, 0, 52, 50, 54, 54, 56, 0, 58, 0, 60, 60, 62, 60, 64, 0, 66, 66, 68, 0, 70, 0
Offset: 2

Views

Author

Keywords

Comments

From Reinhard Zumkeller, Jul 08 2010: (Start)
a(n)=0 iff n is not composite;
for composite n: a(n) = max(m: m < n and gcd(m,n) > 1). (End)

Crossrefs

Programs

Formula

a(n) = n - A020639(n). - Michel Marcus, Jan 07 2015