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!)
A083730 Greatest prime^2 factor of n, or a(n)=1 for squarefree n. 2
1, 1, 1, 4, 1, 1, 1, 4, 9, 1, 1, 4, 1, 1, 1, 4, 1, 9, 1, 4, 1, 1, 1, 4, 25, 1, 9, 4, 1, 1, 1, 4, 1, 1, 1, 9, 1, 1, 1, 4, 1, 1, 1, 4, 9, 1, 1, 4, 49, 25, 1, 4, 1, 9, 1, 4, 1, 1, 1, 4, 1, 1, 9, 4, 1, 1, 1, 4, 1, 1, 1, 9, 1, 1, 25, 4, 1, 1, 1, 4, 9, 1, 1, 4, 1, 1, 1, 4, 1, 9, 1, 4, 1, 1, 1, 4, 1, 49, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Not multiplicative, for example a(4)*a(9) <> a(36). - R. J. Mathar, Oct 31 2011
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A249740(n)^2. - Amiram Eldar, Feb 11 2021
MATHEMATICA
a[n_] := If[(pos = Position[(f = FactorInteger[n])[[;; , 2]], _?(# >= 2 &)]) == {}, 1, f[[pos[[-1, 1]], 1]]^2]; Array[a, 100] (* Amiram Eldar, Nov 14 2020 *)
PROG
(PARI) a(n)=my(f=factor(n)); forstep(i=#f~, 1, -1, if(f[i, 2]>1, return(f[i, 1]^2))); 1 \\ Charles R Greathouse IV, Jul 23 2017
CROSSREFS
Sequence in context: A350698 A335324 A366245 * A358272 A008833 A162400
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jun 14 2003
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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)