login

Revision History for A286356

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Compound filter: a(n) = P(A061395(n), A046523(n)), where P(n,k) is sequence A000027 used as a pairing function.
(history; published version)
#9 by N. J. A. Sloane at Tue May 09 17:36:24 EDT 2017
STATUS

proposed

approved

#8 by Indranil Ghosh at Tue May 09 13:37:12 EDT 2017
STATUS

editing

proposed

#7 by Indranil Ghosh at Tue May 09 13:36:25 EDT 2017
PROG

(Python)

from sympy import factorint

from operator import mul

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

def P(n):

f = factorint(n)

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

def a046523(n):

x=1

while True:

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

else: x+=1

def a061395(n): return 0 if n == 1 else primepi(max(primefactors(n)))

def a(n): return T(a061395(n), a046523(n)) # Indranil Ghosh, May 09 2017

STATUS

proposed

editing

#6 by Antti Karttunen at Tue May 09 12:08:47 EDT 2017
STATUS

editing

proposed

#5 by Antti Karttunen at Tue May 09 10:53:02 EDT 2017
LINKS

Antti Karttunen, <a href="/A286356/b286356.txt">Table of n, a(n) for n = 1..10000</a>

PROG

(PARI)

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

A061395(n) = if(1==n, 0, primepi(vecmax(factor(n)[, 1]))); \\ After M. F. Hasler's code for A006530.

A286356(n) = (2 + ((A061395(n)+A046523(n))^2) - A061395(n) - 3*A046523(n))/2;

for(n=1, 10000, write("b286356.txt", n, " ", A286356(n)));

Discussion
Tue May 09
12:08
Antti Karttunen: Used as a filtering-sequence, thus data-section longish on purpose.
#4 by Antti Karttunen at Tue May 09 10:47:49 EDT 2017
NAME

Compound filter: a(n) = P(A061395(n), A046523(n)), where P(n,k) is sequence A000027 used as a pairing function.

LINKS

Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PairingFunction.html">Pairing Function</a>

FORMULA

a(n) = (1/2)*(2 + ((A061395(n)+A046523(n))^2) - A061395(n) - 3*A046523(n)).

#3 by Antti Karttunen at Tue May 09 10:45:06 EDT 2017
NAME

allocated for Antti Karttunen

Compound filter:

DATA

0, 2, 5, 7, 9, 23, 14, 29, 12, 31, 20, 80, 27, 40, 31, 121, 35, 80, 44, 94, 40, 50, 54, 302, 18, 61, 38, 109, 65, 499, 77, 497, 50, 73, 40, 668, 90, 86, 61, 328, 104, 532, 119, 125, 94, 100, 135, 1178, 25, 94, 73, 142, 152, 302, 50, 355, 86, 115, 170, 1894, 189, 131, 109, 2017, 61, 566, 209, 160, 100, 532, 230, 2630, 252, 148, 94, 179, 50, 601, 275, 1228, 138

OFFSET

1,2

PROG

(Scheme) (define (A286356 n) (* (/ 1 2) (+ (expt (+ (A061395 n) (A046523 n)) 2) (- (A061395 n)) (- (* 3 (A046523 n))) 2)))

CROSSREFS
KEYWORD

allocated

nonn

AUTHOR

Antti Karttunen, May 09 2017

STATUS

approved

editing

#2 by Antti Karttunen at Mon May 08 06:24:34 EDT 2017
KEYWORD

allocating

allocated

#1 by Antti Karttunen at Mon May 08 06:24:34 EDT 2017
NAME

allocated for Antti Karttunen

KEYWORD

allocating

STATUS

approved