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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A338351 Lexicographically earliest infinite sequence {a(n)} of distinct odd positive numbers such that, for n>2, a(n) has a common factor with a(n-1) but not with a(n-2). 2
1, 3, 15, 35, 77, 33, 39, 65, 55, 99, 21, 91, 143, 165, 51, 119, 133, 57, 45, 85, 187, 209, 95, 75, 63, 161, 115, 135, 87, 203, 175, 155, 93, 69, 253, 275, 105, 111, 407, 319, 145, 185, 259, 147, 117, 221, 323, 171, 123, 205, 215, 129, 141, 235, 245, 189, 153, 391, 299, 195, 159, 371 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A version of A336957 defined just on the odd numbers.
Let Ker(k), the kernel of k, denote the set of primes dividing k. Thus Ker(36) = {2,3}, Ker(1) = {}. Then Product_{p in Ker(k)} p = A000265(k), which is denoted by ker(k).
Theorem 1: For n>2, a(n) is the smallest odd number m not yet in the sequence such that
(i) Ker(m) intersect Ker(a(n-1)) is nonempty,
(ii) Ker(m) intersect Ker(a(n-2)) is empty, and
(iii) The set Ker(m) \ Ker(a(n-1)) is nonempty.
LINKS
MAPLE
with(numtheory);
N:= 10^3: # to get a(1) to a(n) where a(n+1) is the first term > N
B:= Vector(N, datatype=integer[1]):
A[1]:=1; A[2]:=3;
for n from 3 do
for k from 5 to N by 2 do
if B[k] = 0 and igcd(k, A[n-1]) > 1 and igcd(k, A[n-2]) = 1 then
if nops(factorset(k) minus factorset(A[n-1])) > 0 then
A[n]:= k;
B[k]:= 1;
break;
fi;
fi;
od:
if k > N then break; fi;
od:
s1:=[seq(A[i], i=1..n-1)];
PROG
(PARI) a338351(upto)={my(v=[1, 3]); for(n=1, upto, forstep(k=5, oo, 2, if(!vecsearch(vecsort(v), k), if(gcd(k, v[#v])>1&&gcd(k, v[#v-1])==1, if(#setminus(Set(factor(k)[, 1]), Set(factor(v[#v])[, 1]))>0, v=concat(v, [k]); break))))); v};
a338351(60) \\ Hugo Pfoertner, Oct 30 2020
CROSSREFS
Sequence in context: A317183 A000466 A241237 * A145949 A015809 A293995
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 30 2020
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 April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)