login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

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 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A175261 Each term is the smallest positive integer both coprime to all earlier terms of the sequence and with a different number of divisors than all earlier terms. (a(1)=1.) 0
1, 2, 9, 35, 1573, 7429, 707281, 1315609, 3397301, 12780049 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..10.

PROG

(PARI) isok(v, vd, nb, k) = {if (vecsearch(vd, numdiv(k)), return (0)); for (j=1, nb, if (gcd(k, v[j]) != 1, return (0)); ); 1; }

findk(v, nb) = {my(k = 1); my(vd = vecsort(vector(nb, j, numdiv(v[j])), , 8)); while (!isok(v, vd, nb, k), k++); k; }

lista(nn) = {va = vector(nn); print1(va[1] = 1, ", "); for (n=2, nn, k = findk(va, n-1); print1(va[n] = k, ", "); ); } \\ Michel Marcus, Feb 25 2016

CROSSREFS

Cf. A175231.

Sequence in context: A357202 A306791 A175231 * A086556 A319012 A192694

Adjacent sequences: A175258 A175259 A175260 * A175262 A175263 A175264

KEYWORD

more,nonn

AUTHOR

Leroy Quet, Mar 16 2010

EXTENSIONS

a(6)-a(10) from Michel Marcus, Feb 25 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 8 11:05 EST 2022. Contains 358693 sequences. (Running on oeis4.)