OFFSET
1,1
COMMENTS
LCM(1..k) is a common denominator for the harmonic numbers, and the present terms k are where the sum reduces to a smaller denominator (A002805).
We can find a prime p and a pair of positive integers t < p and o for every positive integer k that p^o*t <= k < p^o*(t+1). For positive integers i that are not divisible by p^o, a multiple of p will be added to the numerator of the reciprocal sum; for i's that are divisible by p^o, the number that will be added to the numerator of the reciprocal sum is divisible by r(t). So k is in the sequence if and only if p^o*t <= k < p^o*(t+1) where p is a prime and p divides r(t).
The sequence is the answer to Problem 23 of the 2022 AMC12A.
LINKS
Yifan Xie, Table of n, a(n) for n = 1..10000
Art of Problem Solving Website, The Mathematical Association of America, Entry 2022 AMC12/AHSME
FORMULA
A110566(a(n)) > 1. - Thomas Scheuerle, Nov 23 2022
MATHEMATICA
Select[Range[100], Denominator[HarmonicNumber[#]] < LCM @@ Range[#] &] (* Amiram Eldar, Nov 25 2022 *)
PROG
(PARI) isok(n) = lcm(vector(n, i, i)) <> denominator(sum(i=1, n, 1/i)); \\ Thomas Scheuerle, Nov 23 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Yifan Xie, Nov 22 2022
STATUS
approved