A329061 Greatest k such that A002805(k) is not divisible by n, or a(n) = 0 if there's no such k.
0, 1, 68, 3, 124, 68, 719102, 7, 206, 124, 11130347490407364042652446389727, 68, 2196, 719102, 124, 15, 4912, 206, 16128612858, 124, 719102, 11130347490407364042652446389727, 12166, 68, 624, 2196, 620, 719102, 20171036, 124, 27488495831, 31, 11130347490407364042652446389727
Offset: 1
Keywords
Examples
For p = 3, 3 divides numerator(1+1/2), so 2*3, 2*3 + 1 and 2*3 + 2 are such k that A002805(k) can't be divisible by 3. Similarly, 7*3, 7*3 + 1 and 7*3 + 2 are such k. Mod(A001008(7), 3) > 0 and Mod(numerator(1/22 + (Sum_{i=1..7} 1/i)/3), 3) = 0, hence 3 divides A001008(22), which means 22*3, 22*3 + 1 and 22*3 + 2 are also such k. a(3) = 68 because A001008(k) can never be divisible by 3 for k = 66, 67 and 68.
Links
- Jinyuan Wang, PARI program and examples for n <= 10
- Eric Weisstein's World of Mathematics, Harmonic Number
Formula
If n = Product_{j=1..i} p_j^e_j, p_1 < ... < p_i are primes and a(p_j^e_j) > 0, then a(n) = Max_{j=1..i} a(p_j^e_j).
a(p^e) = p^(e-1)*(a(p)+1) - 1 for prime p and a(p) > 0. Proof: A001008(k)/A002805(k) = (Sum_{1 <= i <= k, i is not divisible by p^e} 1/i) + (Sum_{i=1..floor(k/p^e)} 1/i)/p^e), hence A002805(k) is not divisible by p^e if and only if p divides A001008(floor(k/p^e)). From the comment, we know that (a(p)+1)/p - 1 is the greatest m such that p divides A001008(m). Therefore, a(p^e) = p^e*((a(p)+1)/p-1) + p^e - 1 = p^(e-1)*(a(p)+1) - 1.
Extensions
More terms from Jinyuan Wang, Feb 06 2020
Comments