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.

A082506 a(n) = gcd(2^n, n - phi(n)); largest power of 2 dividing cototient(n) = A051953(n).

Original entry on oeis.org

2, 1, 1, 2, 1, 4, 1, 4, 1, 2, 1, 8, 1, 8, 1, 8, 1, 4, 1, 4, 1, 4, 1, 16, 1, 2, 1, 16, 1, 2, 1, 16, 1, 2, 1, 8, 1, 4, 1, 8, 1, 2, 1, 8, 1, 8, 1, 32, 1, 2, 1, 4, 1, 4, 1, 32, 1, 2, 1, 4, 1, 32, 1, 32, 1, 2, 1, 4, 1, 2, 1, 16, 1, 2, 1, 8, 1, 2, 1, 16, 1, 2, 1, 4, 1, 4, 1, 16, 1, 2, 1, 16, 1, 16, 1, 64, 1, 8, 1
Offset: 1

Views

Author

Labos Elemer, Apr 28 2003

Keywords

Comments

a(n)=1 if and only if n is odd or n = 2. - Robert Israel, May 31 2018

Examples

			Different from A069177, analogous sequence with totient, instead of cototient.
		

Crossrefs

Programs

  • Maple
    f:= n -> padic:-ordp(n - numtheory:-phi(n), 2):
    map(f, [$1..100]); # Robert Israel, May 31 2018