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-8 of 8 results.

A054520 Let S = {1,5,9,13,..., 4n+1, ...} and call p in S an S-prime if p>1 and the only divisors of p in S are 1 and p; sequence gives elements of S that are not S-primes.

Original entry on oeis.org

1, 25, 45, 65, 81, 85, 105, 117, 125, 145, 153, 165, 169, 185, 189, 205, 221, 225, 245, 261, 265, 273, 285, 289, 297, 305, 325, 333, 345, 357, 365, 369, 377, 385, 405, 425, 429, 441, 445, 465, 477, 481, 485, 493, 505, 513, 525, 533, 545, 549, 561, 565, 585
Offset: 1

Views

Author

N. J. A. Sloane, Apr 09 2000

Keywords

Comments

The set S is a standard example of a set where unique factorization does not hold.
With the exception a(1)=1, numbers of the form 4*(m + n + 4*m*n)+1 (m,n>0). No such number can be prime because 4*(m + n + 4*m*n)+1=(4m+1)*(4n+1). - Artur Jasinski, Sep 22 2008

Examples

			49 is an S-prime.
		

References

  • T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, page 101, problem 1.

Crossrefs

Programs

  • Mathematica
    a = {}; Do[Do[AppendTo[a, 4(m + n + 4 m n)+1], {m, 1, 100}], {n, 1, 100}]; Union[a] (* Artur Jasinski, Sep 22 2008 *)
  • PARI
    ok(n)={if(n%4==1, my(f=factor(n)); 2<>sum(i=1, #f~, f[i,2]*if(f[i,1]%4==3, 1, 2)), 0)} \\ Andrew Howroyd, Nov 25 2018

Extensions

More terms from James Sellers, Apr 11 2000
Offset corrected by Andrew Howroyd, Nov 25 2018

A057948 S-primes: let S = {1,5,9, ... 4i+1, ...}; then an S-prime is in S but is not divisible by any members of S except itself and 1.

Original entry on oeis.org

5, 9, 13, 17, 21, 29, 33, 37, 41, 49, 53, 57, 61, 69, 73, 77, 89, 93, 97, 101, 109, 113, 121, 129, 133, 137, 141, 149, 157, 161, 173, 177, 181, 193, 197, 201, 209, 213, 217, 229, 233, 237, 241, 249, 253, 257, 269, 277, 281, 293, 301, 309, 313, 317, 321, 329
Offset: 1

Views

Author

Jud McCranie, Oct 14 2000

Keywords

Comments

Factorization in S is not unique. See related sequences.
Kostrikin calls these numbers quasi-primes. - Arkadiusz Wesolowski, Aug 19 2017
a(n) is a prime of the form 4*n + 1 or a product of 2 primes of the form 4*n + 3. - David A. Corneth, Nov 10 2018

Examples

			21 is of the form 4i+1, but it is not divisible by any smaller S-primes, so 21 is in the sequence.
		

References

  • T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, page 101, problem 1.
  • A. I. Kostrikin, Introduction to Algebra, universitext, Springer, 1982.

Crossrefs

Union of A002144 and A107978. - Charlie Neder, Nov 03 2018

Programs

  • Maple
    N:= 1000: # to get all terms <= N
    S:= {seq(4*i+1,i=1..floor((N-1)/4))}:
    for n from 1 while n <= nops(S) do
      r:= S[n];
      S:= S minus {seq(i*r,i=2..floor(N/r))};
    od:
    S; # Robert Israel, Dec 14 2014
  • Mathematica
    nn = 100; Complement[Table[4 k + 1, {k, 1, nn}], Union[Flatten[ Table[Table[(4 k + 1) (4 j + 1), {k, 1, j}], {j, 1, nn}]]]] (* Geoffrey Critzer, Dec 14 2014 *)
  • PARI
    is(n) = if(n % 2 == 0, return(0)); if(n%4 == 1 && isprime(n), return(1)); f = factor(n); if(vecsum(f[, 2]) != 2, return(0)); for(i = 1, #f[, 1], if(f[i, 1] % 4 == 1, return(0))); n>1 \\ David A. Corneth, Nov 10 2018

Formula

a(n) ~ C n log n / log log n, where C > 2. - Thomas Ordowski, Sep 09 2012

Extensions

Offset corrected by Charlie Neder, Nov 03 2018

A057950 Numbers primitive with respect to having more than one factorization into S-primes. See related sequences for definition.

Original entry on oeis.org

441, 693, 1089, 1197, 1449, 1617, 1881, 1953, 2277, 2541, 2709, 2793, 2961, 3069, 3249, 3381, 3717, 3933, 4221, 4257, 4389, 4473, 4557, 4653, 4761, 4977, 5229, 5301, 5313, 5841, 5929, 6321, 6417, 6489, 6633, 6741, 6897, 6909, 7029, 7161, 7353, 7581
Offset: 1

Views

Author

Jud McCranie, Oct 14 2000

Keywords

Comments

A subset of A057949, removing terms that are a multiple of a smaller term.
Cubefree numbers with exactly 4 prime factors, all congruent to 3 mod 4. - Charlie Neder, Nov 26 2018

Examples

			441 is in S = {1, 5, 9, ... 4i+1, ...}, 441 = 9*49 = 21^2, 9, 21 and 49 as S-primes (A057948). 441 is primitive because it is not divisible by any smaller numbers with more than 1 factorization into S-primes. Multiples of 441 within S are not primitive.
		

Crossrefs

Cf. A004709 (cubefree numbers).

Extensions

Definition edited and offset corrected by Eric M. Schmidt, Dec 11 2016

A343826 Numbers which are the product of two S-primes (A057948) in exactly one way.

Original entry on oeis.org

25, 45, 65, 81, 85, 105, 117, 145, 153, 165, 169, 185, 189, 205, 221, 245, 261, 265, 273, 285, 289, 297, 305, 333, 345, 357, 365, 369, 377, 385, 429, 445, 465, 477, 481, 485, 493, 505, 513, 533, 545, 549, 561, 565, 605, 609, 621, 629, 637, 645, 657, 665, 685
Offset: 1

Views

Author

Zachary DeStefano, Apr 30 2021

Keywords

Comments

There exist numbers which are the product of two S-primes in exactly 1, 2, and 3 ways; however, it is unknown if any numbers exist which are the product of two S-primes in exactly 4 ways.

Examples

			153 = 9*17 which are both S-primes, and admits no other S-prime factorizations.
		

Crossrefs

Exactly two ways: A343827. Exactly three ways: A343828.

Programs

  • PARI
    \\ uses is(n) from A057948
    isok(n) = sumdiv(n, d, (d<=n/d) && is(d) && is(n/d)) == 1; \\ Michel Marcus, May 01 2021

Formula

a(n) == 1 (mod 4). - Hugo Pfoertner, May 01 2021

A343827 Numbers which are the product of two S-primes (A057948) in exactly two ways.

Original entry on oeis.org

441, 693, 1089, 1197, 1449, 1617, 1881, 1953, 2277, 2541, 2709, 2793, 2961, 3069, 3249, 3381, 3717, 3933, 4221, 4257, 4473, 4557, 4653, 4761, 4977, 5229, 5301, 5841, 5929, 6321, 6417, 6489, 6633, 6741, 6897, 6909, 7029, 7353, 7581, 7821, 8001, 8037, 8217, 8253
Offset: 1

Views

Author

Zachary DeStefano, Apr 30 2021

Keywords

Comments

First differs from A057950 at a(21)=4473, whereas A057950(21)=4389, which can be represented as the product of two S-primes in exactly 3 ways.
There exist numbers which are the product of two S-primes in exactly 1, 2, and 3 ways; however, it is unknown if any numbers exist which are the product of two S-primes in exactly 4 ways.

Examples

			1449=9*161=21*69 which are all S-primes (A057948), and admits no other S-prime factorizations.
		

Crossrefs

Exactly one way: A343826. Exactly three ways: A343828.

Programs

  • PARI
    \\ uses is(n) from A057948
    isok(n) = sumdiv(n, d, (d<=n/d) && is(d) && is(n/d)) == 2; \\ Michel Marcus, May 01 2021

Formula

a(n) == 1 (mod 4). - Hugo Pfoertner, May 01 2021

A343828 Numbers which are the product of two S-primes (A057948) in exactly three ways.

Original entry on oeis.org

4389, 5313, 7161, 9177, 9933, 10857, 12369, 13629, 14421, 14973, 15477, 16401, 17157, 18249, 18753, 19173, 19437, 20769, 22701, 23529, 23541, 23793, 24717, 26733, 26961, 27993, 28329, 28497, 29337, 29469, 30261, 30597, 31521, 32109, 32361, 32637, 33117, 33649
Offset: 1

Views

Author

Zachary DeStefano, Apr 30 2021

Keywords

Comments

There exist numbers which are the product of two S-primes in exactly 1, 2, and 3 ways.
An S-prime is either a prime of the form 4k+1 or a semiprime of the form (4k+3)*(4m+3). That means the maximum number of prime factors that a number factorizable into two S-primes can have is four (all 4k + 3), and those can be combined into S-primes in at most three distinct ways. - Gleb Ivanov, Dec 07 2021

Examples

			9177 = 21*437 = 57*161 = 69*133 which are all S-primes (A057948), and admits no other S-Prime factorizations.
4389 = (3*7)*(11*19) = (3*11)*(7*19) = (3*19)*(7*11); 3,7,11,19 are the smallest primes of the form 4k + 3.
		

Crossrefs

Exactly one way: A343826. Exactly two ways: A343827.

Programs

  • PARI
    \\ uses is(n) from A057948
    isok(n) = sumdiv(n, d, (d<=n/d) && is(d) && is(n/d)) == 3; \\ Michel Marcus, May 01 2021

Formula

a(n) == 1 (mod 4). - Hugo Pfoertner, May 01 2021

A188633 Numbers of the form 2^k * m, with k > 1 and m an odd composite number.

Original entry on oeis.org

36, 60, 72, 84, 100, 108, 120, 132, 140, 144, 156, 168, 180, 196, 200, 204, 216, 220, 228, 240, 252, 260, 264, 276, 280, 288, 300, 308, 312, 324, 336, 340, 348, 360, 364, 372, 380, 392, 396, 400, 408, 420, 432, 440, 444, 456, 460, 468, 476, 480, 484, 492, 500, 504, 516, 520, 528, 532
Offset: 1

Views

Author

Alonso del Arte, Dec 28 2012

Keywords

Comments

Positive even integers are closed under addition and multiplication. There is no zero and no unit, but the singly even numbers become "primes," and all positive even numbers can be factored into primes.
But unique factorization does not hold. Numbers of the form 4pq, where p is an odd prime and q is any odd integer greater than 1, can be factored as 2(2pq) or as 2p 2q; these are distinct since 2, 2pq, 2p and 2q are all singly even numbers.
For higher k, (2^k)m can have more than two factorizations if Omega(m) >= k, with Omega(n) being the number of prime factors counted with multiplicity (A001222).

Examples

			36 = 2^2 * 3 * 3. It can be factored into singly even numbers in two different ways: 2 * 18 or 6^2.
60 = 2^2 * 3 * 5. It can be factored into singly even numbers as 2 * 30 or 6 * 10.
		

References

  • Ivan Niven and Herbert S. Zuckerman, An Introduction to the Theory of Numbers, New York: John Wiley (1980), p. 18

Crossrefs

Programs

  • Mathematica
    Take[DeleteCases[Union[Flatten[Table[2^k * n * Boole[Not[PrimeQ[n]]], {k, 2, 10}, {n, 3, 149, 2}]]], 0], 40]
  • PARI
    is(n)=my(k=valuation(n,2));k > 1 && !isprime(n>>=k) && n > 1 \\ Charles R Greathouse IV, Dec 28 2012
    
  • PARI
    list(lim)=my(v=List()); forcomposite(n=9,lim\4, if(n%2==0, next); my(k=4*n); while(k<=lim, listput(v,k); k<<=1)); Set(v) \\ Charles R Greathouse IV, Feb 03 2018

Formula

a(n) ~ 4n. In particular, a(n) = 4n + 4n/log n + O(n/log^2 n). - Charles R Greathouse IV, Feb 03 2018

A321337 a(n) is the least number with n factorizations into S-primes (numbers 4k+1 with no proper divisors > 1 of form 4m+1).

Original entry on oeis.org

1, 441, 4389, 39501, 53361, 92169, 829521, 1935549, 302841, 2725569, 3041577, 27374193, 853577109, 7682193981, 3129357, 6359661, 19263321, 234201429, 230639102001, 437200389130923862144165773, 1341335457, 12072019113, 23318757, 1201975929, 28164213, 253477917, 4918230009, 101711843982441
Offset: 1

Views

Author

Charlie Neder, Nov 05 2018

Keywords

Comments

It suffices to check only numbers with all prime factors congruent to 3 mod 4 and continuous, nonincreasing prime exponents (i.e., members of the analog of A025487 with respect to primes congruent to 3 mod 4).

Examples

			a(4) = 39501 can be factored into S-primes (A057948) in 4 distinct ways: 9 * 21 * 209, 9 * 33 * 133, 9 * 57 * 77, or 21 * 33 * 57, and it is the smallest number with this property.
		

Crossrefs

Cf. A054520, A057948 (S-primes), A057949 (numbers with multiple factorizations into S-primes).

Extensions

a(13) corrected by David A. Corneth, Nov 10 2018
More terms from WG Zeist, Jan 09 2019
Showing 1-8 of 8 results.