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!)
A162901 a(1)=1. For n >= 2, a(n) = the smallest integer >= a(n-1) such that gcd(n, a(n)) = p^k, where p = prime, k >= 1. 2
1, 2, 3, 4, 5, 8, 14, 14, 15, 15, 22, 22, 26, 26, 27, 28, 34, 34, 38, 38, 39, 40, 46, 46, 50, 50, 51, 52, 58, 58, 62, 62, 63, 64, 65, 68, 74, 74, 75, 75, 82, 82, 86, 86, 87, 88, 94, 94, 98, 98, 99, 100, 106, 106, 115, 116, 117, 118, 118, 118, 122, 122, 123, 124, 125, 128 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MAPLE
f:= proc(n) option remember; local r;
for r from procname(n-1) do
if nops(ifactors(igcd(n, r))[2])=1 then return r fi
od
end proc:
f(1):= 1:
map(f, [$1..100]); # Robert Israel, Jun 27 2019
PROG
(PARI) a=1; print1(a, ", "); for(n=2, 100, while(omega(gcd(n, a))!=1, a++); print1(a, ", ")) \\ Hagen von Eitzen, Oct 03 2009
CROSSREFS
Cf. A162900.
Sequence in context: A357533 A152526 A330706 * A333785 A162900 A015925
KEYWORD
nonn
AUTHOR
Leroy Quet, Jul 16 2009
EXTENSIONS
More terms from Hagen von Eitzen, Oct 03 2009
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 19 23:15 EDT 2024. Contains 371798 sequences. (Running on oeis4.)