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.
%I A000026 M0467 N0171 #68 Oct 25 2022 02:41:54 %S A000026 1,2,3,4,5,6,7,6,6,10,11,12,13,14,15,8,17,12,19,20,21,22,23,18,10,26, %T A000026 9,28,29,30,31,10,33,34,35,24,37,38,39,30,41,42,43,44,30,46,47,24,14, %U A000026 20,51,52,53,18,55,42,57,58,59,60,61,62,42,12,65,66,67,68,69,70,71,36 %N A000026 Mosaic numbers or multiplicative projection of n: if n = Product (p_j^k_j) then a(n) = Product (p_j * k_j). %C A000026 a(n) = n if n is squarefree. %C A000026 a(2n) = 2n if and only if n is squarefree. - _Peter Munn_, Feb 05 2017 %D A000026 N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence). %D A000026 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %H A000026 T. D. Noe, <a href="/A000026/b000026.txt">Table of n, a(n) for n = 1..10000</a> %H A000026 R. A. Gillman, <a href="http://www.jstor.org/stable/2324471">The Average Size of a Certain Arithmetic Function, A6660 solution</a>, Amer. Math. Monthly, 100 (1993), pp. 296-298. %H A000026 B. Gordon and M. M. Robertson, <a href="http://dx.doi.org/10.4153/CJM-1965-094-9">Two theorems on mosaics</a>, Canad. J. Math., 17 (1965), 1010-1014. %H A000026 A. A. Mullin, <a href="http://dx.doi.org/10.1090/S0002-9904-1963-10961-1">Some related number-theoretic functions</a>, Research Problem 4, Bull. Amer. Math. Soc., 69 (1963), 446-447. %H A000026 Daniel Tsai, <a href="http://math.colgate.edu/~integers/v32/v32.mail.html">A recurring pattern in natural numbers of a certain property</a>, Integers (2021) Vol. 21, Article #A32. %F A000026 n = Product (p_j^k_j) -> a(n) = Product (p_j * k_j). %F A000026 Multiplicative with a(p^e) = p*e. - _David W. Wilson_, Aug 01 2001 %F A000026 a(n) = A005361(n) * A007947(n). - _Enrique Pérez Herrero_, Jun 24 2010 %F A000026 a(A193551(n)) = n and a(m) != n for m < A193551(n). - _Reinhard Zumkeller_, Aug 27 2011 %F A000026 Sum_{k=1..n} a(k) ~ c * n^2, where c = (zeta(2)^2/2) * Product_{p prime} (1 - 3/p^2 + 2/p^3 + 1/p^4 - 1/p^5) = 0.4175724194... . - _Amiram Eldar_, Oct 25 2022 %e A000026 24 = 2^3*3^1, a(24) = 2*3*3*1 = 18. %p A000026 A000026 := proc(n) local e,j; e := ifactors(n)[2]: %p A000026 mul(e[j][1]*e[j][2], j=1..nops(e)) end: %p A000026 seq(A000026(n), n=1..80); # _Peter Luschny_, Jan 17 2011 %t A000026 Array[ Times@@Flatten[ FactorInteger[ # ] ]&, 100 ] %o A000026 (PARI) a(n)=local(f); if(n<1,0,f=factor(n); prod(k=1,matsize(f)[1],f[k,1]*f[k,2])) %o A000026 (PARI) a(n)=my(f=factor(n)); factorback(f[,1])*factorback(f[,2]) \\ _Charles R Greathouse IV_, Apr 04 2016 %o A000026 (Haskell) %o A000026 a000026 n = f a000040_list n 1 (0^(n-1)) 1 where %o A000026 f _ 1 q e y = y * e * q %o A000026 f ps'@(p:ps) x q e y %o A000026 | m == 0 = f ps' x' p (e+1) y %o A000026 | e > 0 = f ps x q 0 (y * e * q) %o A000026 | x < p * p = f ps' 1 x 1 y %o A000026 | otherwise = f ps x 1 0 y %o A000026 where (x', m) = divMod x p %o A000026 a000026_list = map a000026 [1..] %o A000026 -- _Reinhard Zumkeller_, Aug 27 2011 %o A000026 (Python) %o A000026 from math import prod %o A000026 from sympy import factorint %o A000026 def a(n): f = factorint(n); return prod(p*f[p] for p in f) %o A000026 print([a(n) for n in range(1, 73)]) # _Michael S. Branicky_, May 27 2021 %Y A000026 Cf. A005117, A005361, A007947, A008474, A013661, A193551. %K A000026 nonn,easy,nice,mult %O A000026 1,2 %A A000026 _N. J. A. Sloane_ %E A000026 Example, program, definition, comments and more terms added by _Olivier Gérard_ (02/99).