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!)
A286571 Compound filter (prime signature of n & n/gcd(n, sigma(n))): a(n) = P(A046523(n), A017666(n)), where P(n,k) is sequence A000027 used as a pairing function. 2

%I #8 May 26 2017 16:38:20

%S 1,5,8,25,17,21,30,113,70,51,68,103,93,72,51,481,155,148,192,222,331,

%T 126,278,324,382,159,569,78,437,591,498,1985,126,237,786,2521,705,282,

%U 952,375,863,660,948,243,337,384,1130,1759,1330,1842,237,678,1433,520,1776,459,1897,567,1772,2076,1893,636,2713,8065,2421,810,2280,1002,384,2046

%N Compound filter (prime signature of n & n/gcd(n, sigma(n))): a(n) = P(A046523(n), A017666(n)), where P(n,k) is sequence A000027 used as a pairing function.

%H Antti Karttunen, <a href="/A286571/b286571.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = (1/2)*(2 + ((A046523(n)+A017666(n))^2) - A046523(n) - 3*A017666(n)).

%o (PARI)

%o A017666(n) = (n/gcd(n, sigma(n)));

%o A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ This function from _Charles R Greathouse IV_, Aug 17 2011

%o A286571(n) = (1/2)*(2 + ((A046523(n)+A017666(n))^2) - A046523(n) - 3*A017666(n));

%o (Scheme) (define (A286571 n) (* (/ 1 2) (+ (expt (+ (A046523 n) (A017666 n)) 2) (- (A046523 n)) (- (* 3 (A017666 n))) 2)))

%o (Python)

%o from sympy import factorint, gcd, divisor_sigma

%o def T(n, m): return ((n + m)**2 - n - 3*m + 2)/2

%o def P(n):

%o f = factorint(n)

%o return sorted([f[i] for i in f])

%o def a046523(n):

%o x=1

%o while True:

%o if P(n) == P(x): return x

%o else: x+=1

%o def a(n): return T(a046523(n), n/gcd(n, divisor_sigma(n))) # _Indranil Ghosh_, May 26 2017

%Y Cf. A000027, A017666, A046523, A286360, A286570.

%K nonn

%O 1,2

%A _Antti Karttunen_, May 26 2017

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 April 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)