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!)
A081214 Least m such that A081212(m) = n. 3
1, 4, 12, 84, 3948, 88320, 815424, 14652150 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
MAPLE
gsqfree := proc(n) local resul ; resul := n ; while not numtheory[issqrfree](resul) do resul := resul-1 ; od ; RETURN(resul) ; end: A081210 := proc(n) option remember ; local pfd, resul, p ; if n = 1 then RETURN(1) ; else pfd := ifactors(n)[2] ; resul := 1 ; for p from 1 to nops(pfd) do resul := resul*gsqfree( op(1, op(p, pfd))^op(2, op(p, pfd))) ; od ; fi ; end: r := proc(n, k) option remember ; if k= 0 then n ; else r(A081210(n), k-1) ; fi ; end: A081212 := proc(n) local i; i := 0 ; while r(n, i) <> r(n, i+1) do i := i+1 ; od ; RETURN(i) ; end: A081214 := proc() local a, m, h ; a :=[seq(-1, i=1..40)] ; for m from 1 to 8000000 do h := A081212(m) ; if h+1 <= nops(a) then if op(h+1, a) = -1 then a := subsop(h+1=m, a) ; print(a) ; fi ; fi ; od ; RETURN(a) ; end: A081214() ; # R. J. Mathar, Apr 04 2007
MATHEMATICA
gsf[n_] := gsf[n] = For[k = n, True, k--, If[SquareFreeQ[k], Return[k]]];
A081210[n_] := A081210[n] = Times @@ gsf /@ Power @@@ FactorInteger[n];
A081212[n_] := A081212[n] = Module[{cnt = 0}, FixedPoint[(cnt++; A081210[#])&, n]; cnt - 1];
a[n_] := a[n] = For[m = 1, True, m++, If[A081212[m] == n, Return[m]]];
Table[Print[n, " ", a[n]]; a[n], {n, 0, 7}] (* Jean-François Alcover, Nov 27 2023 *)
CROSSREFS
Sequence in context: A263866 A208802 A226960 * A331087 A194004 A064280
KEYWORD
nonn,more
AUTHOR
Reinhard Zumkeller, Mar 10 2003
EXTENSIONS
More terms from R. J. Mathar, Apr 04 2007
One more term from Jean-François Alcover, Nov 27 2023
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 July 11 11:59 EDT 2024. Contains 374232 sequences. (Running on oeis4.)