OFFSET
1,2
COMMENTS
n | a(n). - David A. Corneth, Oct 17 2022
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..60 (first 42 terms from Chai Wah Wu)
MATHEMATICA
a[n_] := Module[{k = 1}, While[Length[Union[GCD @@@ Subsets[k + Range[0, n], {2}]]] != n, k++]; k]; Array[a, 20] (* Amiram Eldar, Oct 17 2022 *)
PROG
(Python)
from math import gcd
from itertools import count
def A356371(n):
for k in count(n, n):
if len(set(gcd(i, j) for i in range(k, n+k+1) for j in range(i+1, n+k+1))) == n:
return k # Chai Wah Wu, Oct 18 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Gleb Ivanov, Oct 17 2022
EXTENSIONS
a(31)-a(38) from Giovanni Resta, Oct 17 2022
STATUS
approved