login
A184829
a(n) = smallest k such that A000961(n+1) = A000961(n) + (A000961(n) mod k), or 0 if no such k exists.
3
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,1
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]
LINKS
Jason Yuen, Table of n, a(n) for n = 1..10000 (correcting Rémi Eismann's previous b-file)
EXAMPLE
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.
KEYWORD
nonn
AUTHOR
Rémi Eismann, Jan 23 2011
EXTENSIONS
a(1) corrected by Jason Yuen, Oct 17 2024
STATUS
approved