cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A050985 Cubefree part of n.

This page as a plain text file.
%I A050985 #62 Feb 16 2025 08:32:41
%S A050985 1,2,3,4,5,6,7,1,9,10,11,12,13,14,15,2,17,18,19,20,21,22,23,3,25,26,1,
%T A050985 28,29,30,31,4,33,34,35,36,37,38,39,5,41,42,43,44,45,46,47,6,49,50,51,
%U A050985 52,53,2,55,7,57,58,59,60,61,62,63,1,65,66,67,68,69,70,71,9,73,74,75
%N A050985 Cubefree part of n.
%C A050985 This is an unusual sequence in the sense that the 83.2% of the integers that belong to A004709 occur infinitely many times, whereas the remaining 16.8% of the integers that belong to A046099 never occur at all. - _Ant King_, Sep 22 2013
%H A050985 Amiram Eldar, <a href="/A050985/b050985.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..1000 from Harvey P. Dale)
%H A050985 Henry Bottomley, <a href="http://fs.gallup.unm.edu/Bottomley-Sm-Mult-Functions.htm">Some Smarandache-type multiplicative sequences</a>.
%H A050985 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/CubefreePart.html">Cubefree Part</a>.
%H A050985 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/DirichletGeneratingFunction.html">Dirichlet Generating Function</a>.
%F A050985 Multiplicative with p^e -> p^(e mod 3), p prime. - _Reinhard Zumkeller_, Nov 22 2009
%F A050985 Dirichlet g.f.: zeta(3s)*zeta(s-1)/zeta(3s-3). - _R. J. Mathar_, Feb 11 2011
%F A050985 a(n) = n/A008834(n). - _R. J. Mathar_, Dec 08 2015
%F A050985 Sum_{k=1..n} a(k) ~ Pi^6 * n^2 / (1890*Zeta(3)). - _Vaclav Kotesovec_, Feb 08 2019
%p A050985 A050985 := proc(n)
%p A050985     n/A008834(n) ;
%p A050985 end proc:
%p A050985 seq(A050985(n),n=1..40) ; # _R. J. Mathar_, Dec 08 2015
%t A050985 cf[n_]:=Module[{tr=Transpose[FactorInteger[n]],ex,cb},ex= tr[[2]]- Mod[ tr[[2]],3];cb=Times@@(First[#]^Last[#]&/@Transpose[{tr[[1]], ex}]);n/cb]; Array[cf,75] (* _Harvey P. Dale_, Jun 03 2012 *)
%t A050985 f[p_, e_] := p^Mod[e, 3]; a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 100] (* _Amiram Eldar_, Sep 07 2020 *)
%o A050985 (Python)
%o A050985 from operator import mul
%o A050985 from functools import reduce
%o A050985 from sympy import factorint
%o A050985 def A050985(n):
%o A050985     return 1 if n <=1 else reduce(mul,[p**(e % 3) for p,e in factorint(n).items()])
%o A050985 # _Chai Wah Wu_, Feb 04 2015
%o A050985 (PARI) a(n) = my(f=factor(n)); f[,2] = apply(x->(x % 3), f[,2]); factorback(f); \\ _Michel Marcus_, Jan 06 2019
%Y A050985 Cf. A007913, A008834, A053165, A004709, A046099, A301596, A301597.
%K A050985 nonn,easy,mult
%O A050985 1,2
%A A050985 _Eric W. Weisstein_, Dec 11 1999