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.

A184829 a(n) = smallest k such that A000961(n+1) = A000961(n) + (A000961(n) mod k), or 0 if no such k exists.

Original entry on oeis.org

2, 0, 2, 3, 3, 2, 7, 7, 3, 5, 3, 3, 5, 3, 23, 5, 3, 2, 9, 11, 3, 13, 3, 5, 47, 3, 29, 61, 7, 3, 67, 7, 79, 7, 9, 31, 3, 9, 3, 5, 15, 9, 3, 2, 5, 25, 3, 43, 3, 29, 151, 53, 3, 5, 167, 3, 19, 3, 7, 3, 17, 199, 73, 3, 5, 227, 3, 239, 47, 6, 3, 251, 257, 3, 53, 7, 3, 277, 5
Offset: 1

Views

Author

Rémi Eismann, Jan 23 2011

Keywords

Comments

a(n) is the "weight" of prime powers.
The decomposition of prime powers into weight*level + gap is A000961(n) = a(n)*A184831(n) + A057820(n) if n > 2 and a(n) > 0. [amended by Jason Yuen, Oct 17 2024]

Examples

			For n = 1 we have A000961(1) = 1, A000961(2) = 2; 2 is the smallest k such that 2 = 1 + (1 mod k), hence a(1) = 2.
For n = 3 we have A000961(3) = 3, A000961(4) = 4; 2 is the smallest k such that 4 = 3 + (3 mod k), hence a(3) = 2.
For n = 24 we have A000961(24) = 49, A000961(25) = 53; 5 is the smallest k such that 53 = 49 + (49 mod k), hence a(24) = 5.
		

Crossrefs

Extensions

a(1) corrected by Jason Yuen, Oct 17 2024