OFFSET
1,2
LINKS
Bert Dobbelaere, Table of n, a(n) for n = 1..50
EXAMPLE
a(6) = 293.
293 mod 2 = 1 >= 2/2
293 mod 3 = 2 >= 3/2
293 mod 5 = 3 >= 5/2
293 mod 7 = 6 >= 7/2
293 mod 11 = 7 >= 11/2
293 mod 13 = 7 >= 13/2
293 is the smallest integer > 0 satisfying these inequalities for the first 6 primes.
PROG
(PARI) isok(k, vp) = {for (i=1, #vp, if ((k % vp[i]) < vp[i]/2, return (0)); ); return (1); }
a(n) = {my(k=1, vp = primes(n)); while (!isok(k, vp), k++); k; } \\ Michel Marcus, Sep 08 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Bert Dobbelaere, Sep 07 2019
STATUS
approved