login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A076986
Smallest squarefree number of the form n*k + 1.
1
2, 3, 7, 5, 6, 7, 15, 17, 10, 11, 23, 13, 14, 15, 31, 17, 35, 19, 39, 21, 22, 23, 47, 73, 26, 53, 55, 29, 30, 31, 94, 33, 34, 35, 71, 37, 38, 39, 79, 41, 42, 43, 87, 89, 46, 47, 95, 97, 197, 51, 103, 53, 107, 55, 111, 57, 58, 59, 119, 61, 62, 187, 127, 65, 66
OFFSET
1,1
LINKS
EXAMPLE
a(24) = 73 as 25 and 49 are not squarefree.
PROG
(PARI) a(n)={my(k=1); while(!issquarefree(n*k+1), k++); n*k+1} \\ Andrew Howroyd, Jan 16 2020
CROSSREFS
Cf. A005117 (squarefree numbers).
Sequence in context: A069771 A330423 A235801 * A333386 A357579 A334126
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Oct 25 2002
EXTENSIONS
a(26) corrected and a(27) and beyond from Andrew Howroyd, Jan 16 2020
STATUS
approved