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.

A200612 The arithmetic mean of the prime factors (with multiplicity) of n is 3.

This page as a plain text file.
%I A200612 #26 Feb 22 2016 04:51:16
%S A200612 3,9,20,27,60,81,112,180,243,336,400,540,729,1008,1200,1620,2187,2240,
%T A200612 2816,3024,3600,4860,6561,6720,8000,8448,9072,10800,12544,13312,14580,
%U A200612 19683,20160,24000,25344,27216,32400,37632,39936,43740,44800,56320,59049,60480
%N A200612 The arithmetic mean of the prime factors (with multiplicity) of n is 3.
%H A200612 Reinhard Zumkeller and Donovan Johnson, <a href="/A200612/b200612.txt">Table of n, a(n) for n = 1..500</a> (first 150 terms from Reinhard Zumkeller)
%F A200612 A001414(a(n)) mod A001222(a(n)) = 0 and A001414(a(n))/A001222(a(n)) = 3. [_Reinhard Zumkeller_, Nov 20 2011]
%e A200612 20 is in the sequence because 20 = 2*2*5 and (2+2+5)/3 = 9/3 = 3.
%p A200612 for i from 2 to 35000 do: a:=ifactors(i): s:=sum((a[2][j][1]*a[2][j][2]),j=1..nops(a[2])): t:=sum((a[2][j][2]),j=1..nops(a[2])): if s/t=3 then print(i); fi od:
%t A200612 Select[Range[61000],Mean[Flatten[Table[#[[1]],{#[[2]]}]&/@FactorInteger[ #]]]==3&] (* _Harvey P. Dale_, Nov 08 2013 *)
%o A200612 (Haskell)
%o A200612 a200612 n = a200612_list !! (n-1)
%o A200612 a200612_list = filter f [2..] where
%o A200612    f x = r == 0 && x' == 3 where (x',r) = divMod (a001414 x) (a001222 x)
%o A200612 -- _Reinhard Zumkeller_, Nov 20 2011
%o A200612 (PARI) isok(n) = my(f = factor(n)); (sum(k=1, #f~, f[k,1]*f[k,2]) / vecsum(f[,2])) == 3; \\ _Michel Marcus_, Feb 22 2016
%Y A200612 Subsequence of A078175.
%K A200612 nonn
%O A200612 1,1
%A A200612 _Jeffrey Burch_, Nov 19 2011