Original entry on oeis.org
0, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 4, 1, 3, 3, 1, 1, 3, 1, 4, 3, 3, 1, 4, 1, 3, 1, 4, 1, 7, 1, 1, 3, 3, 3, 4, 1, 3, 3, 5, 1, 7, 1, 4, 4, 3, 1, 4, 1, 2, 3, 4, 1, 1, 3, 5, 3, 3, 1, 10, 1, 3, 4, 1, 3, 7, 1, 4, 3, 7, 1, 4, 1, 3, 3, 4, 3, 7, 1, 5, 1, 3, 1, 10, 3, 3, 3
Offset: 1
Table of a(n), b(n) = A000005(n), and c(n) = A008479(n) for n <= 12:
n b(n) c(n) a(n)
------------------
1 1 1 0
2 2 1 1
3 2 1 1
4 3 2 1
5 2 1 1
6 4 1 3
7 2 1 1
8 4 3 1
9 3 2 1
10 4 1 3
11 2 1 1
12 6 2 4
a(12) = 4 since 12 has 6 divisors {1, 2, 3, 4, 6, 12}, and row 12 of A369609 has 2 terms {6, 12}.
a(18) = 3 since 18 has 6 divisors {1, 2, 3, 6, 9, 18}, and row 18 of A369609 has 3 terms {6, 12, 18}.
a(50) = 2 since 50 has 6 divisors {1, 2, 5, 10, 25, 50}, and row 50 of A369609 has 4 terms {10, 20, 40, 50}
a(162) = -2 since 162 has 10 divisors {1,2,3,6,9,18,27,54,81,162} but row 162 of A369609 has 12 terms {6,12,18,24,36,48,54,72,96,108,144,162}.
a(500) = 0 since 500 has as many divisors {1,2,4,5,10,20,25,50,100,125,250,500} as terms in row 500 of A369609 {10,20,40,50,80,100,160,200,250,320,400,500}.
Cf.
A000005,
A003557,
A008479,
A095960,
A119288,
A162306,
A183093,
A303554,
A355432,
A360767,
A369609.
-
rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; Table[r = rad[n]; DivisorSigma[0, n] - Count[Range[n/r], _?(Divisible[r, rad[#]] &)], {n, 120}]
-
a(n) = my(f=factor(n)[, 1], s); forvec(v=vector(#f, i, [1, logint(n, f[i])]), if(prod(i=1, #f, f[i]^v[i])<=n, s++)); numdiv(n) - s; \\ after A008479 \\ Michel Marcus, Jun 03 2024
A381094
Triangle read by rows where row n contains k < n that are neither coprime to n nor have the same squarefree kernel as n, or 0 if there are no such k.
Original entry on oeis.org
0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 6, 2, 4, 5, 6, 8, 0, 2, 3, 4, 8, 9, 10, 0, 2, 4, 6, 7, 8, 10, 12, 3, 5, 6, 9, 10, 12, 6, 10, 12, 14, 0, 2, 3, 4, 8, 9, 10, 14, 15, 16, 0, 2, 4, 5, 6, 8, 12, 14, 15, 16, 18, 3, 6, 7, 9, 12, 14, 15, 18, 2, 4, 6, 8, 10, 11, 12, 14, 16, 18, 20
Offset: 1
Table begins:
n row n
---------------------------
1: 0;
2: 0;
3: 0;
4: 0;
5: 0;
6: 2, 3, 4;
7: 0;
8: 6;
9: 6;
10: 2, 4, 5, 6, 8;
11: 0;
12: 2, 3, 4, 8, 9, 10;
13: 0;
14: 2, 4, 6, 7, 8, 10, 12;
15: 3, 5, 6, 9, 10, 12;
16: 6, 10, 12, 14;
From _Michael De Vlieger_, Mar 03 2025: (Start)
Row 10 is the union of {2, 4, 6, 8, 10} and {5, 10} without 10.
Row 12 is the union of {2, 4, 6, 8, 10, 12} and {3, 6, 9, 12} without {6, 12}.
Row 30 is the union of {2, 4, ..., 30}, {3, 6, ..., 30}, and {5, 10, ..., 30} without 30.
Row 84 is the union of {2, 4, ..., 84}, {3, 6, ..., 84}, and {7, 14, ..., 84} without {42, 84}, etc. (End)
-
rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; Table[r = rad[n]; Select[Range[n], Nor[CoprimeQ[#, n], rad[#] == r] &], {n, 120}]
A372972
Numbers k such that A372720(k) is negative.
Original entry on oeis.org
162, 250, 324, 384, 486, 648, 686, 768, 972, 1152, 1250, 1296, 1372, 1458, 1536, 1728, 1875, 1944, 2058, 2250, 2304, 2430, 2500, 2560, 2592, 2662, 2738, 2916, 3000, 3072, 3362, 3402, 3456, 3698, 3750, 3840, 3888, 3993, 4050, 4116, 4374, 4394, 4418, 4500, 4608
Offset: 1
a(1) = 162 = 2*3^4, since tau(162) - f(162)
= (1+1)*(4+1) - card(A369609(162))
= 10 - 12 = -2.
a(2) = 250 = 2*5^3, since tau(250) - f(250)
= (1+1)*(3+1) - card(A369609(250))
= 8 - 9 = -1.
a(3) = 324 = 2^2*3^4, since tau(324) - f(324)
= (2+1)*(4+1) - card(A369609(324))
= 15 - 16 = -1, etc.
A381497
a(n) = sum of numbers k < n such that 1 < gcd(k,n) and rad(k) != rad(n), where rad = A007947.
Original entry on oeis.org
0, 0, 0, 0, 0, 9, 0, 6, 6, 25, 0, 36, 0, 49, 45, 42, 0, 81, 0, 100, 84, 121, 0, 144, 45, 169, 96, 196, 0, 315, 0, 210, 198, 289, 175, 354, 0, 361, 273, 430, 0, 609, 0, 484, 435, 529, 0, 648, 140, 655, 459, 676, 0, 801, 385, 826, 570, 841, 0, 1260, 0, 961, 798
Offset: 1
Table of n and a(n) for select n, showing prime power decomposition of both and row n of A381094:
n Factor(n) a(n) Factor(a(n)) Row n of A381094
-------------------------------------------------------------------
6 2 * 3 9 3^2 {2,3,4}
8 2^3 6 2 * 3 {6}
9 3^2 6 2 * 3 {6}
10 2 * 5 25 5^2 {2,4,5,6,8}
12 2^2 * 3 36 2^2 * 3^2 {2,3,4,8,9,10}
14 2 * 7 49 7^2 {2,4,6,7,8,10,12}
15 3 * 5 45 3^2 * 5 {3,5,6,9,10,12}
16 2^4 42 2 * 3 * 7 {6,10,12,14}
18 2 * 3^2 81 3^4 {2,3,4,8,9,10,14,15,16}
20 2^2 * 5 100 2^2 * 5^2 {2,4,5,6,8,12,14,15,16,18}
21 3 * 7 84 2^2 * 3 * 7 {3,6,7,9,12,14,15,18}
22 2 * 11 121 11^2 {2,4,6,8,10,11,12,14,16,18,20}
24 2^3 * 3 144 2^4 * 3^2 {2,3,4,8,9,10,14,15,16,20,21,22}
a(6) = (2+4) + (3) = 9,
a(n) = 6 for n in {8, 9} since 6 is the only number less than n that shares a factor with n but does not have the same squarefree kernel as n.
a(10) = (2+4+6+8) + (5) = 25.
a(12) = (2+4+8+10) + (3+9) = 36.
a(14) = (2+4+6+8+10+12) + (7) = 49.
a(15) = (3+6+9+12) + (5+10) = 45.
a(16) = (6+10+12+14) = 42, etc.
-
rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; Table[r = rad[n]; Total@ Select[Range[n], Nor[CoprimeQ[#, n], rad[#] == r] &], {n, 120}]
A376505
Number of m <= n such that rad(m) | n that are neither squarefree nor prime powers, where rad = A007947.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 0, 0, 1, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0, 5, 0, 1, 1, 0, 0, 5, 0, 3, 0, 1, 0, 6, 0, 2, 0, 0, 0, 11, 0, 0, 1, 0, 0, 7, 0, 1, 0, 5, 0, 7, 0, 0, 2, 1, 0, 8, 0, 4, 0, 0, 0, 11, 0, 0, 0
Offset: 1
a(2) = a(4) = a(p^k) = 0 since numbers m <= p^k such that rad(m) | p^k are all divisors that are prime powers p^j, j = 0..k.
a(k) = 0 for k < 12 since 12 is the smallest number that is neither squarefree nor prime powers.
a(12) = 1 since m = 12 is such that 12 <= 12 and rad(12) | 12.
a(18) = 2 since both k = 12 and k = 18 are such that rad(k) | 18.
a(30) = 4 since row 30 of A162306 has 4 numbers that are neither squarefree nor prime powers: {1, 2, 3, 4, 5, 6, 8, 9, 10, [12], 15, 16, [18], [20], [24], 25, 27, 30}, indicated by brackets. (The bracketed numbers happen to be the first 4 terms of A126706.)
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
- Michael De Vlieger, Hasse diagram of row 1440 of A162306 showing 4 squarefree composites in green, 3 primes in red, the empty product in gray, 17 perfect powers of primes in yellow, and 72 numbers that are neither squarefree nor prime powers in blue and purple, with purple additionally representing powerful numbers that are not prime powers.
-
(* Load "theta" program from this A369609/a369609.txt">link in A369609 *)
{0}~Join~Table[theta[n] - Total@ Map[Floor@ Log[#, n] &, #1] - 2^#2 + #2 & @@ {#, Length[#]} &@ FactorInteger[n][[All, 1]], {n, 2, 120}]
-
rad(n) = factorback(factorint(n)[, 1]);
a(n) = sum(m=1, n, if (!issquarefree(m) && !isprimepower(m), ((n % rad(m))==0))); \\ Michel Marcus, Sep 29 2024
A381498
a(n) = sum of numbers k <= n that have the same squarefree kernel as n.
Original entry on oeis.org
1, 2, 3, 6, 5, 6, 7, 14, 12, 10, 11, 18, 13, 14, 15, 30, 17, 36, 19, 30, 21, 22, 23, 60, 30, 26, 39, 42, 29, 30, 31, 62, 33, 34, 35, 96, 37, 38, 39, 70, 41, 42, 43, 66, 60, 46, 47, 144, 56, 120, 51, 78, 53, 198, 55, 98, 57, 58, 59, 90, 61, 62, 84, 126, 65, 66
Offset: 1
n a(n) Factor(a(n)) Row n of A369609
----------------------------------------
4 6 2 * 3 {2, 4}
8 14 2 * 7 {2, 4, 8}
9 12 2^2 * 3 {3, 9}
12 18 2 * 3^2 {6, 12}
16 30 2 * 3 * 5 {2, 4, 8, 16}
18 36 2^2 * 3^2 {6, 12, 18}
20 30 2 * 3 * 5 {10, 20}
24 60 2^2 * 3 * 5 {6, 12, 18, 24}
25 30 2 * 3 * 5 {5, 25}
27 39 3 * 13 {3, 9, 27}
28 42 2 * 3 * 7 {14, 28}
32 62 2 * 31 {2, 4, 8, 16, 32}
36 96 2^5 * 3 {6, 12, 18, 24, 36}
-
rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; Table[r = rad[n]; Total@ Select[Range[n], rad[#] == r &], {n, 120}]
-
rad(n) = factorback(factorint(n)[, 1]);
a(n) = my(r=rad(n)); sum(k=1, n, if(rad(k)==r, k)); \\ Michel Marcus, Mar 03 2025
A382926
Irregular table where row n lists numbers k in row n of A162306 for which there exists a prime p | n such that k*p > n.
Original entry on oeis.org
2, 3, 4, 5, 3, 4, 6, 7, 8, 9, 4, 5, 8, 10, 11, 6, 8, 9, 12, 13, 4, 7, 8, 14, 5, 9, 15, 16, 17, 8, 9, 12, 16, 18, 19, 5, 8, 10, 16, 20, 7, 9, 21, 4, 8, 11, 16, 22, 23, 9, 12, 16, 18, 24, 25, 4, 8, 13, 16, 26, 27, 7, 8, 14, 16, 28, 29, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30
Offset: 2
Let s(n) = A382964(n).
Table of select rows:
n s(n) row n of this sequence
--------------------------------------------------------
6 3 3, 4, 6;
10 4 4, 5, 8, 10;
12 4 6, 8, 9, 12;
14 4 4, 7, 8, 14;
15 3 5, 9, 15;
18 5 8, 9, 12, 16, 18;
20 5 5, 8, 10, 16, 20;
21 3 7, 9, 21;
22 5 4, 8, 11, 16, 22;
24 5 9, 12, 16, 18, 24;
26 5 4, 8, 13, 16, 26;
28 5 7, 8, 14, 16, 28;
30 12 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30.
In the examples below, we place terms in row n in brackets [] among other terms in row n of A162306, presented in order of row n of A275280.
Row p^m for m > 0 and prime p is {p^m}, since multiplying p^m by p exceeds p^m.
Row 10 = {4, 5, 8, 10}, since numbers k such that rad(k) | 10 contains these numbers, furthermore, we have the following: 2 or 5 times 8 exceeds 10, 5*4 > 10, 2 or 5 times 10 exceeds 10, and 5*5 > 10.
1 2 [4] [8]
[5] [10]
Row 24 = {9, 12, 16, 18, 24}, since numbers k such that rad(k) | 24 contains these numbers, furthermore, we have the following: 2 or 3 times 16 exceeds 24, 2 or 3 times 24 exceeds 24, 3*12 > 24, 2 or 3 times 18 exceeds 24, and 3*9 > 24.
1 2 4 8 [16]
3 6 [12] [24]
[9] [18]
-
(* First, run the "regs" function from A369609, then: *)
Table[Select[regs[n], Function[k, AnyTrue[FactorInteger[n][[All, 1]], #*k > n &]]], {n, 2, 30}] // Flatten
A382964
Number of k <= n such that rad(k) divides n and g * k > n where g is the largest prime factor of n and rad = A007947.
Original entry on oeis.org
0, 1, 1, 1, 1, 3, 1, 1, 1, 4, 1, 4, 1, 4, 3, 1, 1, 5, 1, 5, 3, 5, 1, 5, 1, 5, 1, 5, 1, 12, 1, 1, 4, 6, 3, 6, 1, 6, 4, 6, 1, 14, 1, 6, 4, 6, 1, 6, 1, 6, 4, 6, 1, 6, 3, 6, 4, 6, 1, 16, 1, 6, 4, 1, 3, 17, 1, 7, 4, 13, 1, 7, 1, 7, 4, 7, 3, 18, 1, 7, 1, 7, 1, 19, 3
Offset: 1
Table of select n, a(n), and numbers k in row n of A382926:
n a(n) row n of A382926
--------------------------------------------------------
6 3 3, 4, 6;
10 4 4, 5, 8, 10;
12 4 6, 8, 9, 12;
14 4 4, 7, 8, 14;
15 3 5, 9, 15;
18 5 8, 9, 12, 16, 18;
20 5 5, 8, 10, 16, 20;
21 3 7, 9, 21;
22 5 4, 8, 11, 16, 22;
24 5 9, 12, 16, 18, 24;
26 5 4, 8, 13, 16, 26;
28 5 7, 8, 14, 16, 28;
30 12 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30.
-
(* First, run the "regs" function from A369609, then: *)
Table[Count[regs[n], _?(Function[k, AllTrue[FactorInteger[n][[All, 1]], #*k > n &]])], {n, 105}]
A381112
a(1) = 1, let q = greatest prime in S(n) = {p; p = A053669(a(i)); 1 <= i <= n-1}. Then for n > 1, a(n) is the smallest number not yet in the sequence such that: (i) q|a(n), and (ii) p a prime and p^k|a(n) implies p in S(n) and k <= cardinality of p in S(n).
Original entry on oeis.org
1, 2, 3, 6, 5, 10, 15, 20, 30, 7, 14, 21, 28, 35, 42, 56, 63, 70, 84, 105, 112, 126, 140, 168, 175, 189, 210, 11, 22, 33, 44, 55, 66, 77, 88, 99, 110, 132, 154, 165, 176, 198, 220, 231, 264, 275, 297, 308, 330, 352, 385, 396, 440, 462, 495, 528, 539, 550, 594
Offset: 1
The smallest nondivisor prime of a(1) = 1 is 2, so S(2) = {2} and so a(2) = 2. Likewise the smallest nondivisor prime of a(2) = 2 is 3, so S(3) = {2,3} and a(3) = 3. At this point we have S(4) = {2,3,2} and the next term must have greatest prime factor = q = 3 and other prime factors must be in S(4). Therefore a(4) = 2*3 = 6.
Sequence expressed in tabular form, rows (after first) starting with a prime and ending with a primorial:
1;
2;
3,6;
5,10,15,20,30;
7,14,21,28,35,42,56,63,70,84,105,112,126,140,168,175,189,210;
11,22,33,44,55,66,...
Row (n+1) commencing p = prime(n) contains all p-smooth numbers m; p <=m <= A002110(n) except for any perfect powers p^k, (k>1) of p which lie in that range.
- Michael De Vlieger, Table of n, a(n) for n = 1..6382
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..6382.
- Michael De Vlieger, Plot prime(i)^m | a(n) at (x,y) = (n,i), n = 1..4096, 24X vertical exaggeration, with a color function representing m = 1 in black, m = 2 in red, ..., largest m in the dataset in magenta. The colored bar below the image is red if a(n) is prime, gold if a(n) is a proper prime power, green for squarefree composite a(n), and blue or purple if a(n) is neither squarefree nor prime power, where purple additionally represents powerful a(n) that are not prime powers.
- Michael De Vlieger, Notes on the mechanics of this sequence, regarding the prime decomposition of a(n) and the cardinalities of primes p in the sequence S(1..n), where S(n) = A053669(a(n)).
-
(* First, load the program regs from the "fast Mathematica programs" in the links at A369609, then: *)
nn = 8; p = q = 1; c[] := False; m[] := 0;
f[x_] := f[x] = Block[{qx = 2}, While[Divisible[x, qx], qx = NextPrime[qx]]; qx];
{1}~Join~Reap[Do[
Map[If[! c[#],
If[PrimeQ[#],
Sow[#]; c[#] = True; m[f[#]]++,
If[And[AllTrue[FactorInteger[#], #2 <= m[#1] & @@ # &], Divisible[#, p]],
Sow[#]; c[#] = True; m[f[#]]++] ] ] &, regs[q, q]];
q *= Prime[i]; p = Prime[i]; u = 1, {i, nn}] ][[-1, 1]] (* Michael De Vlieger, Feb 16 2025 *)
Original entry on oeis.org
1, 2, 2, 5, 2, 6, 5, 18, 2, 6, 5, 19, 5, 20, 16, 68, 2, 7, 6, 22, 5, 21, 18, 77, 5, 22, 17, 79, 16, 74, 60, 283, 2, 7, 6, 23, 5, 23, 18, 80, 5, 22, 18, 82, 16, 78, 62, 295, 5, 24, 19, 87, 16, 82, 64, 315, 15, 80, 62, 316, 55, 290, 226, 1161
Offset: 0
Triangle begins:
0: 1;
1: 2;
2: 2, 5;
3: 2, 6, 5, 18;
4: 2, 6, 5, 19, 5, 20, 16, 68;
5: 2, 7, 6, 22, 5, 21, 18, 77, 5, 22, 17, 79, 16, 74, 60, 283;
...
-
(* Load the "theta" program at the Mathematica link in A369609, then: *)
f[x_] := Times @@ Prime@ Position[Reverse@ IntegerDigits[x, 2], 1][[All, 1]]; Table[theta[f[2^n + k] ], {n, 0, 7}, {k, 0, 2^n - 1}]
Showing 1-10 of 11 results.
Comments