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 A277886 #16 Nov 16 2016 11:06:58 %S A277886 1,2,3,3,5,6,7,6,5,10,11,9,13,14,15,12,17,10,19,15,21,22,23,18,7,26, %T A277886 15,21,29,30,31,24,33,34,35,27,37,38,39,30,41,42,43,33,25,46,47,36,11, %U A277886 14,51,39,53,30,55,42,57,58,59,45,61,62,35,48,65,66,67,51,69,70,71,54,73,74,21,57,77,78,79,60,45 %N A277886 If n is squarefree, a(n) = n, else a(n) = A000040(1+A277885(n)) * (n/(A249739(n)^2)). %C A277886 If n has non-unitary prime divisors, then divide it by the square of the smallest of them and multiply by a single instance of the next larger prime. %C A277886 This differs from related A097246 for the first time at n=16. For both sequences A097248 gives the eventual stable points reached when starting iterating from n. %H A277886 Antti Karttunen, <a href="/A277886/b277886.txt">Table of n, a(n) for n = 1..10000</a> %F A277886 If A277885(n) = 0 [when n is squarefree], then a(n) = n, otherwise a(n) = A000040(1+A277885(n)) * (n/(A249739(n)^2)). %F A277886 Other identities. For all n >= 1: %F A277886 A048675(a(n)) = A048675(n). %e A277886 For n = 12 = 2*2*3, the smallest non-unitary prime divisor (and in this case the only one) is 2, thus we divide with 2^2 and multiply with the next larger prime 3, to get ((2^2 * 3)/(2^2))*3 = 3*3, thus a(12) = 9. %e A277886 For n = 16 = 2^4, we divide two instances of 2 out and multiply by a single instance of 3 to get 2*2*3 = 12. %t A277886 Table[If[SquareFreeQ@ n, n, Prime[1 + PrimePi@ Min[Select[FactorInteger[n][[All, 1]], ! CoprimeQ[#, n/#] &] /. {} -> 0]] (n/If[SquareFreeQ@ n, 1, p = 2; While[! Divisible[n, p^2], p = NextPrime@ p]; p]^2)], {n, 81}] (* _Michael De Vlieger_, Nov 15 2016 *) %o A277886 (Scheme) (define (A277886 n) (if (zero? (A277885 n)) n (* (A000040 (+ 1 (A277885 n))) (/ n (expt (A249739 n) 2))))) %Y A277886 Cf. A000040, A048675, A097246, A097248, A249739, A277885, A277887, A277888, A277896. %K A277886 nonn %O A277886 1,2 %A A277886 _Antti Karttunen_, Nov 08 2016