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.

Showing 1-4 of 4 results.

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

Original entry on oeis.org

2, 5, 12, 14, 23, 27, 38, 63, 40, 27, 80, 90, 23, 61, 216, 152, 80, 90, 80, 148, 61, 27, 302, 375, 40, 84, 179, 90, 467, 495, 530, 698, 61, 61, 826, 702, 23, 61, 412, 324, 467, 495, 80, 265, 148, 27, 1178, 1323, 109, 148, 142, 90, 302, 430, 412, 430, 61, 27, 1832, 1890, 23, 142, 2787, 2410, 601, 495, 80, 148, 601, 495, 2630, 2700, 23, 142, 265, 148, 601, 495, 1178
Offset: 1

Views

Author

Antti Karttunen, May 07 2017

Keywords

Crossrefs

Cf. A005383 (after its initial term 3, gives the positions of 23's in this sequence).
Cf. A051950 (one of the matches not matched by A046523 alone).

Programs

  • 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
    A286255(n) = (2 + ((A046523(n)+A046523(1+n))^2) - A046523(n) - 3*A046523(1+n))/2;
    for(n=1, 10000, write("b286255.txt", n, " ", A286255(n)));
    
  • Python
    from sympy import factorint
    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 a(n): return T(a046523(n), a046523(n + 1)) # Indranil Ghosh, May 07 2017
  • Scheme
    (define (A286255 n) (* (/ 1 2) (+ (expt (+ (A046523 n) (A046523 (+ 1 n))) 2) (- (A046523 n)) (- (* 3 (A046523 (+ 1 n)))) 2)))
    

Formula

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

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

Original entry on oeis.org

2, 5, 5, 25, 5, 27, 23, 44, 14, 61, 5, 117, 38, 27, 27, 226, 23, 90, 23, 90, 27, 142, 5, 375, 40, 27, 86, 148, 5, 495, 80, 698, 27, 61, 27, 702, 80, 61, 27, 765, 5, 625, 23, 90, 148, 61, 23, 1224, 109, 90, 27, 832, 5, 324, 61, 324, 61, 142, 23, 2013, 23, 84, 90, 2410, 27, 625, 302, 90, 27, 625, 23, 2998, 80, 27, 90, 265, 61, 495, 23, 1426, 152, 601, 5, 2013, 142, 27, 142
Offset: 1

Views

Author

Antti Karttunen, May 07 2017

Keywords

Crossrefs

Cf. A005384 (gives the positions of 5's), A234095 (of 23's).

Programs

  • 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
    A286258(n) = (1/2)*(2 + ((A046523(n)+A046523((2*n)+1))^2) - A046523(n) - 3*A046523((2*n)+1));
    for(n=1, 10000, write("b286258.txt", n, " ", A286258(n)));
    
  • Python
    from sympy import factorint
    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 a(n): return T(a046523(n), a046523(2*n + 1)) # Indranil Ghosh, May 07 2017
  • Scheme
    (define (A286258 n) (* (/ 1 2) (+ (expt (+ (A046523 n) (A046523 (+ 1 n n))) 2) (- (A046523 n)) (- (* 3 (A046523 (+ 1 n n)))) 2)))
    

Formula

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

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

Original entry on oeis.org

2, 12, 5, 40, 5, 84, 12, 86, 14, 142, 5, 148, 23, 216, 27, 367, 5, 265, 23, 148, 27, 412, 12, 430, 59, 142, 44, 832, 5, 1860, 23, 698, 61, 826, 27, 856, 23, 412, 27, 1402, 5, 850, 80, 148, 90, 1384, 12, 1759, 40, 265, 27, 607, 23, 1105, 61, 430, 27, 2086, 5, 2140, 80, 2352, 148, 4342, 27, 850, 23, 832, 27, 5080, 5, 2998, 80, 142, 148, 832, 27, 2956, 138, 1426
Offset: 1

Views

Author

Antti Karttunen, May 07 2017

Keywords

Crossrefs

Cf. A001359 (gives the positions of 5's), A049002 (of 12's), A115093 (of 23's).

Programs

  • 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
    A286256(n) = (2 + ((A046523(n)+A046523(2+n))^2) - A046523(n) - 3*A046523(2+n))/2;
    for(n=1, 10000, write("b286256.txt", n, " ", A286256(n)));
    
  • Python
    from sympy import factorint
    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 a(n): return T(a046523(n), a046523(n + 2)) # Indranil Ghosh, May 07 2017
  • Scheme
    (define (A286256 n) (* (/ 1 2) (+ (expt (+ (A046523 n) (A046523 (+ 2 n))) 2) (- (A046523 n)) (- (* 3 (A046523 (+ 2 n)))) 2)))
    

Formula

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

A305977 Filter sequence combining prime signatures of n and 2n-1.

Original entry on oeis.org

1, 2, 2, 3, 4, 5, 2, 6, 3, 5, 7, 8, 4, 9, 5, 10, 7, 11, 2, 11, 5, 5, 12, 13, 14, 15, 16, 11, 7, 17, 2, 18, 15, 5, 15, 19, 2, 20, 15, 13, 21, 17, 7, 11, 8, 15, 7, 22, 3, 23, 5, 8, 24, 13, 5, 25, 5, 15, 12, 26, 4, 15, 27, 28, 15, 17, 7, 29, 5, 17, 7, 30, 7, 20, 8, 8, 20, 31, 2, 22, 32, 5, 24, 33, 34, 20, 5, 35, 7, 33, 5, 11, 15, 15, 36, 37, 2, 38, 8, 19, 7, 31
Offset: 1

Views

Author

Antti Karttunen, Jun 15 2018

Keywords

Comments

Restricted growth sequence transform of A286257.

Crossrefs

Programs

  • PARI
    up_to = 65537;
    rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; };
    A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523
    Aux305977(n) = [A046523(n),A046523(n+n-1)];
    v305977 = rgs_transform(vector(up_to,n,Aux305977(n)));
    A305977(n) = v305977[n];
Showing 1-4 of 4 results.