The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A366510 Largest prime divisor of n which is < sqrt(n), 1 if n is prime, square of prime or 1. 1

%I #24 Jan 04 2024 19:24:31

%S 1,1,1,1,1,2,1,2,1,2,1,3,1,2,3,2,1,3,1,2,3,2,1,3,1,2,3,2,1,5,1,2,3,2,

%T 5,3,1,2,3,5,1,3,1,2,5,2,1,3,1,5,3,2,1,3,5,7,3,2,1,5,1,2,7,2,5,3,1,2,

%U 3,7,1,3,1,2,5,2,7,3,1,5,3,2,1,7,5,2,3,2,1,5,7,2,3,2,5,3,1,7,3,5

%N Largest prime divisor of n which is < sqrt(n), 1 if n is prime, square of prime or 1.

%H Andrew Howroyd, <a href="/A366510/b366510.txt">Table of n, a(n) for n = 1..10000</a>

%o (PARI) a(n) = {my(m=1); foreach(factor(n)[,1], d, if(d^2 < n, m=max(m,d))); m} \\ _Andrew Howroyd_, Oct 11 2023

%Y Cf. A006530, A060775, A085392, A217581.

%K nonn

%O 1,6

%A _Ilya Gutkovskiy_, Oct 11 2023

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 May 16 05:56 EDT 2024. Contains 372549 sequences. (Running on oeis4.)