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-10 of 14 results. Next

A337198 Number of distinct prime factors in A337194(n) = 1+A000265(sigma(n)), where A000265(k) gives the odd part of k.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 1, 2, 1, 1, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1
Offset: 1

Views

Author

Antti Karttunen, Aug 20 2020

Keywords

Comments

The first 3 occurs at a(137).

Crossrefs

Programs

Formula

a(n) = A001221(A337194(n)) = 1 + A001221(A336698(n)).

A337199 Binary weight of A337194(n) = 1+A000265(sigma(n)), where A000265(k) gives the odd part of k.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 1, 2, 1, 1, 1, 3, 2, 1, 1, 2, 1, 1, 1, 3, 1, 4, 2, 1, 1, 4, 3, 1, 2, 3, 2, 2, 1, 1, 4, 5, 2, 3, 3, 1, 2, 1, 2, 4, 1, 3, 1, 1, 3, 1, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4, 1, 2, 1, 3, 2, 5, 5, 1, 3, 1, 3, 2, 1, 4, 4, 5, 1, 3, 1, 2, 1, 1, 3, 4, 2, 5, 3, 3, 3, 4, 1
Offset: 1

Views

Author

Antti Karttunen, Aug 20 2020

Keywords

Crossrefs

Programs

Formula

a(n) = A000120(A337194(n)) = A000120(A336698(n)).

A337200 Lexicographically earliest infinite sequence such that a(i) = a(j) => A278222(A337194(i)) = A278222(A337194(j)), for all i, j >= 1.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 3, 3, 4, 5, 1, 3, 1, 1, 1, 5, 4, 1, 1, 3, 1, 1, 1, 2, 1, 6, 3, 1, 1, 6, 5, 1, 4, 5, 3, 3, 1, 1, 6, 7, 3, 5, 2, 1, 3, 1, 4, 6, 1, 5, 1, 1, 2, 1, 5, 3, 3, 1, 1, 3, 3, 5, 5, 6, 1, 3, 1, 5, 4, 7, 7, 1, 5, 1, 2, 3, 1, 6, 6, 8, 1, 5, 1, 3, 1, 1, 5, 9, 3, 10, 5, 2, 2, 9, 1
Offset: 1

Views

Author

Antti Karttunen, Aug 20 2020

Keywords

Comments

Restricted growth sequence transform of f(n) = A278222(A337194(n)).
For all i, j: A324400(i) = A324400(j) => a(i) = a(j) => A337199(i) = A337199(j).

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; };
    A000265(n) = (n>>valuation(n, 2));
    A337194(n) = (1+A000265(sigma(n)));
    A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t };
    A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); };  \\ From A046523
    A278222(n) = A046523(A005940(1+n));
    v337200 = rgs_transform(vector(up_to, n, A278222(A337194(n))));
    A337200(n) = v337200[n];

A337201 Lexicographically earliest infinite sequence such that a(i) = a(j) => A278221(A337194(i)) = A278221(A337194(j)), for all i, j >= 1.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 3, 3, 4, 5, 1, 3, 1, 1, 1, 5, 4, 1, 1, 3, 1, 1, 1, 2, 1, 6, 3, 1, 1, 6, 5, 1, 4, 5, 3, 3, 1, 1, 7, 8, 3, 3, 2, 1, 3, 1, 4, 6, 1, 5, 1, 1, 2, 1, 5, 3, 4, 1, 1, 3, 3, 2, 9, 7, 1, 4, 1, 5, 4, 8, 10, 1, 5, 1, 2, 11, 1, 6, 6, 12, 1, 5, 1, 3, 1, 1, 3, 13, 3, 14, 15, 2, 2, 16, 1
Offset: 1

Views

Author

Antti Karttunen, Aug 20 2020

Keywords

Comments

Restricted growth sequence transform of f(n) = A278221(A337194(n)).
For all i, j: A324400(i) = A324400(j) => a(i) = a(j) => A337198(i) = A337198(j).

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; };
    A000265(n) = (n>>valuation(n, 2));
    A337194(n) = (1+A000265(sigma(n)));
    A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523
    A122111(n) = if(1==n,n,my(f=factor(n), es=Vecrev(f[,2]),is=concat(apply(primepi,Vecrev(f[,1])),[0]),pri=0,m=1); for(i=1, #es, pri += es[i]; m *= prime(pri)^(is[i]-is[1+i])); (m));
    A278221(n) = A046523(A122111(n));
    v337201 = rgs_transform(vector(up_to, n, A278221(A337194(n))));
    A337201(n) = v337201[n];

A342465 a(n) = A329697(A337194(n)).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 0, 1, 0, 0, 0, 2, 1, 0, 0, 1, 0, 0, 0, 2, 0, 3, 1, 0, 0, 3, 2, 0, 1, 2, 1, 1, 0, 0, 3, 4, 1, 2, 2, 0, 1, 0, 1, 3, 0, 2, 0, 0, 2, 0, 2, 1, 2, 0, 0, 1, 1, 4, 3, 3, 0, 2, 0, 2, 1, 4, 3, 0, 2, 0, 2, 1, 0, 3, 3, 4, 0, 2, 0, 1, 0, 0, 2, 4, 1, 4, 2, 2, 2, 3, 0
Offset: 1

Views

Author

Antti Karttunen, Mar 16 2021

Keywords

Crossrefs

Programs

Formula

a(n) = A329697(A336698(n)) = A329697(A337194(n)).

A161942 Odd part of sum of divisors of n.

Original entry on oeis.org

1, 3, 1, 7, 3, 3, 1, 15, 13, 9, 3, 7, 7, 3, 3, 31, 9, 39, 5, 21, 1, 9, 3, 15, 31, 21, 5, 7, 15, 9, 1, 63, 3, 27, 3, 91, 19, 15, 7, 45, 21, 3, 11, 21, 39, 9, 3, 31, 57, 93, 9, 49, 27, 15, 9, 15, 5, 45, 15, 21, 31, 3, 13, 127, 21, 9, 17, 63, 3, 9, 9, 195, 37, 57, 31, 35, 3, 21, 5, 93, 121, 63
Offset: 1

Views

Author

Keywords

Comments

It is conjectured that iteration of this function will always reach 1. This implies the nonexistence of odd perfect numbers. This is equivalent to the same question for A000593, which can be expressed as the sum of the divisors of the odd part of n.
Up to 20000000, there are only two odd numbers with a(n) and a(a(n)) both >= n: 81 and 18966025. See A162284.
For the nonexistence proof of odd perfect numbers, it is enough to show that this sequence has no fixed points beyond the initial one. This is equivalent to a similar condition given for A326042. - Antti Karttunen, Jun 17 2019

Crossrefs

Programs

  • Mathematica
    oddPart[n_] := n/2^IntegerExponent[n, 2]; a[n_] := oddPart[ DivisorSigma[1, n]]; Table[a[n], {n, 1, 82}] (* Jean-François Alcover, Sep 03 2012 *)
  • PARI
    oddpart(n)=n/2^valuation(n,2);
    a(n)=oddpart(sigma(n));
    
  • Python
    from sympy import divisor_sigma
    def A161942(n): return (m:=int(divisor_sigma(n)))>>(~m&m-1).bit_length() # Chai Wah Wu, Mar 17 2023
  • Scheme
    (define (A161942 n) (A000265 (A000203 n))) ;; [For the implementations of A000203 and A000265, see under the respective entries]. - Antti Karttunen, Nov 18 2017
    

Formula

Multiplicative with a(p^e) = oddpart((p^{e+1}-1)/(p-1)), where oddpart(n) = A000265(n) is the largest odd divisor of n.
a(n) = A000265(A000203(n)).
a(n) = A337194(n)-1. - Antti Karttunen, Nov 30 2024

A336700 Numbers k such that the odd part of (1+k) divides (1 + odd part of sigma(k)).

Original entry on oeis.org

1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 2431, 2943, 3775, 4095, 8191, 13311, 14335, 16383, 17407, 21951, 22527, 32767, 34335, 44031, 57855, 65535, 85375, 131071, 204799, 262143, 376831, 524287, 923647, 1048575, 1562623, 1632255, 2056191, 2097151, 2744319, 4194303, 6815743, 8388607, 8781823, 10059775, 16777215
Offset: 1

Views

Author

Antti Karttunen, Aug 02 2020

Keywords

Comments

Numbers k for which A337194(k) = 1+A161942(k) is a multiple of A000265(1+k).
Conjecture: After 1, all terms are of the form 4u+3 (in A004767). If this could be proved, then it would refute at once the existence of both the odd perfect numbers and the quasiperfect numbers. Concentrating on the latter is probably easier, as it is known that all quasiperfect numbers must be odd squares, thus k is of the form 4u+1, in which case the condition given in A336701 that A000265(1+A000265(sigma(k))) must be equal to A000265(1+k) reduces to a simpler form, A000265(1+sigma(k)) = (1+k)/2, and as k = s^2, with s odd, so (s^2 + 1)/2 should divide 1+sigma(s^2). Does that condition allow any other solutions than s=1 ? See A337339.

Crossrefs

Subsequences: A000225, A336701 (terms where the quotient is a power of 2).

Programs

  • Mathematica
    Block[{f}, f[n_] := n/2^IntegerExponent[n, 2]; Select[Range[2^20], Mod[f[1 + f[DivisorSigma[1, #]]], f[1 + #]] == 0 &] ] (* Michael De Vlieger, Aug 22 2020 *)
  • PARI
    A000265(n) = (n>>valuation(n,2));
    isA336700(n) = !((1+A000265(sigma(n)))%A000265(1+n));

A337339 Denominator of (1+sigma(s)) / ((s+1)/2), where s is the square of n prime-shifted once (s = A003961(n)^2 = A003961(n^2)).

Original entry on oeis.org

1, 5, 13, 41, 25, 113, 61, 365, 313, 221, 85, 1013, 145, 109, 613, 3281, 181, 2813, 265, 1985, 1513, 761, 421, 9113, 1201, 1301, 7813, 377, 481, 5513, 685, 29525, 2113, 1625, 2965, 25313, 841, 2381, 3613, 17861, 925, 13613, 1105, 6845, 15313, 3785, 1405, 82013, 7321, 10805, 4513, 11705, 1741, 70313, 4141, 8821, 6613, 865
Offset: 1

Views

Author

Antti Karttunen, Aug 24 2020

Keywords

Comments

All terms are members of A007310, because all terms of A337336 and A337337 are.
No 1's after the initial one at a(1) => No quasiperfect numbers. See comments in A336700 & A337342.
If any quasiperfect numbers qp exist, they must occur also in A325311.
Question: Is there any reliable lower bound for this sequence? See A337340, A337341.
Duplicate values are rare, but at least two cases exist: a(21) = a(74) = 1513 and a(253) = a(554) = 71065. - Antti Karttunen, Jan 03 2024

Crossrefs

Programs

  • PARI
    A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
    A337339(n) = { my(s=(A003961(n)^2),u=(s+1)/2); (u/gcd(1+sigma(s), u)); };
    \\ Or alternatively as:
    A337339(n) = { my(s=A003961(n^2)); denominator((1+sigma(s))/((s+1)/2)); };

Formula

a(n) = A337336(n) / A337337(n) = A048673(n^2) / gcd(A048673(n^2), A336844(n^2)).
a(n) = A337336(n) / gcd(A337336(n), 1+A003973(n^2)).

A336701 Numbers k for which A000265(1+A000265(sigma(k))) is equal to A000265(1+k).

Original entry on oeis.org

1, 3, 7, 15, 31, 127, 1023, 8191, 34335, 57855, 131071, 524287, 2147483647
Offset: 1

Views

Author

Antti Karttunen, Aug 02 2020

Keywords

Comments

Numbers k such that A336698(k) [= A000265(1+A161942(k))] is equal to A000265(1+k).
Numbers k such that A337194(k) = 2^e * A000265(1+k), for some e >= 1, where that e = A337195(k).
Any odd perfect number would trivially satisfy this condition.
Also, all hypothetical quasiperfect numbers, numbers k that satisfy sigma(k) = 2k+1, would be members.
Question: Is A066175 a subsequence of this sequence?
From Antti Karttunen, Aug 23 2020: (Start)
Numbers k such that (1+k) = 2^e * A336698(k), for some e >= 0.
Thus numbers k such that for some e >= 0, (1+k) = 2^(e-A337195(k)) * A337194(k), or equally, that A337194(k) = 2^(A337195(k)-e) * (1+k).
Conjecture: There are no even terms. This is equivalent to claim that there are no k such that A336698(k) = 1+k: If we assume that k is even, then in above equations we set e=0, and the requirement will then become that A337194(k) = 2^A337195(k)*(1+k), thus 1+k = A336698(k) = A000265(1+A000265(sigma(k))).
(End)

Crossrefs

Subsequence of A336700.
Cf. A000668 (a subsequence).
See also comments in A326042, A332223.

Programs

  • Mathematica
    Block[{f}, f[n_] := n/2^IntegerExponent[n, 2]; Select[Range[2^20], f[1 + f[DivisorSigma[1, #]]] == f[1 + #] &] ] (* Michael De Vlieger, Aug 22 2020 *)
  • PARI
    A000265(n)  = (n>>valuation(n,2));
    isA336701(n) = (A000265(1+A000265(sigma(n))) == A000265(1+n));

A337337 a(n) = gcd(1+sigma(s), (s+1)/2), where s is the square of n once prime-shifted (s = A003961(n)^2 = A003961(n^2)).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 1, 1, 1
Offset: 1

Views

Author

Antti Karttunen, Aug 24 2020

Keywords

Comments

All terms are in A007310, because all terms of A337336 are.

Crossrefs

Programs

  • PARI
    A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
    A337337(n) = { my(s=(A003961(n)^2)); gcd((s+1)/2, 1+sigma(s)); };
    
  • PARI
    A048673(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); (factorback(f)+1)/2; };
    A336697(n) = { my(s=((n+n-1)^2)); gcd((s+1)/2, 1+sigma(s)); };
    A337337(n) = A336697(A048673(n));

Formula

a(n) = gcd((s+1)/2, 1+sigma(s)), where s = A003961(n)^2 = A003961(n^2).
a(n) = gcd(A048673(n^2), 1+A003973(n^2)).
a(n) = gcd(A048673(n^2), A337194(A003961(n)^2)) = gcd(A337336(n), A336844(n^2)).
a(n) = A336697(A048673(n)).
a(n) = A337335(n^2).
Showing 1-10 of 14 results. Next