A080785
Least p-smooth number not less n, where p is the smallest prime factor of n.
Original entry on oeis.org
1, 2, 3, 4, 5, 8, 7, 8, 9, 16, 11, 16, 13, 16, 16, 16, 17, 32, 19, 32, 24, 32, 23, 32, 25, 32, 27, 32, 29, 32, 31, 32, 36, 64, 36, 64, 37, 64, 48, 64, 41, 64, 43, 64, 48, 64, 47, 64, 49, 64, 54, 64, 53, 64, 60, 64, 64, 64, 59, 64, 61, 64, 64, 64, 72, 128, 67, 128, 72, 128, 71
Offset: 1
-
a[n_] := Module[{p, k}, p = FactorInteger[n][[1, 1]]; For[k = n, True, k++, If[FactorInteger[k][[-1, 1]] <= p, Return[k]]]];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Oct 15 2021 *)
A133581
(k^2)-th k-smooth number for k = prime(n).
Original entry on oeis.org
8, 16, 54, 112, 396, 512, 1008, 1155, 1794, 3312, 3520, 5488, 6776, 7020, 8405, 11180, 14384, 14720, 18241, 20339, 20709, 24769, 27094, 31648, 38994, 41890, 42336, 45318, 45825, 48852, 66234, 69874, 76857, 77441, 91719, 92323, 100215, 108376, 112896, 121539
Offset: 1
a(1) = 8 = A000079(4).
a(2) = 16 = A003586(9).
a(3) = 54 = A051037(25).
-
from sympy import integer_log, prime, prevprime
def A133581(n):
if n==1: return 8
def bisection(f,kmin=0,kmax=1):
while f(kmax) > kmax: kmax <<= 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return kmax
def g(x,m): return sum((x//3**i).bit_length() for i in range(integer_log(x,3)[0]+1)) if m==3 else sum(g(x//(m**i),prevprime(m))for i in range(integer_log(x,m)[0]+1))
k = prime(n)
def f(x): return k**2+x-g(x,k)
return bisection(f,k**2,k**2) # Chai Wah Wu, Sep 17 2024
A219785
Primes not neighboring an 11-smooth number.
Original entry on oeis.org
103, 137, 157, 173, 227, 229, 233, 277, 283, 311, 313, 317, 347, 367, 373, 389, 409, 443, 457, 467, 509, 521, 523, 547, 557, 563, 569, 571, 607, 613, 619, 643, 653, 677, 683, 691, 709, 733, 739, 743, 761, 773, 787, 797, 821, 823, 827, 829, 853, 857, 859, 877
Offset: 1
103 is in the sequence because it is prime and the closest 11-smooth numbers are 100 and 105, which differ from 103 by 3 and -2 respectively, neither being -1 or +1.
137 is in the sequence because it is prime and neither 137 - 1 = 136 = 2^3 * 17 nor 137 + 1 = 138 = 2 * 3 * 23 are 11-smooth.
-
mx = 2^10; t11 = Select[Sort[Flatten[Table[2^i 3^j 5^k 7^l 11^m, {i, 0, Log[2, mx]}, {j, 0, Log[3, mx]}, {k, 0, Log[5, mx]}, {l, 0, Log[7, mx]}, {m, 0, Log[11, mx]}]]], # <= mx &]; Complement[Prime[Range[PrimePi[mx]]], Union[Select[t11 + 1, PrimeQ], Select[t11 - 1, PrimeQ]]] (* T. D. Noe, Nov 27 2012 *)
A219790
Smallest prime not neighboring a prime(n)-smooth number.
Original entry on oeis.org
11, 29, 43, 67, 103, 137, 173, 173, 173, 283, 283, 283, 283, 283, 317, 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, 653, 787, 787, 787, 907, 907, 907, 907, 1433, 1433, 1433, 1433, 1433, 1447, 1543, 1543, 1867, 1867, 1867, 1867, 1867, 1867
Offset: 1
a(2) = 29, the smallest prime not neighboring a 3-smooth number, since 3 is the 2nd prime; i.e., not of the form 2^j*3^k +/- 1. 43-1 = 2*3*7, 43+1 = 2*2*11, so neither are 5-smooth.
a(3) = 43, the smallest prime not neighboring a 5-smooth number, since 5 is the 3rd prime, and 43-1 = 42 = 2 * 3 * 7 is not 5 smooth, and 43+1 = 44 = 2^2 * 11 is not 5 smooth. - corrected by _Jason Kimberley_, Nov 29 2012
a(4) = 67, the smallest prime not neighboring a 7-smooth number, since 7 is the 4th prime, and 67-1 = 66 = 2 * 3 * 11 is not 7 smooth, and 67+1 = 68 = 2^2 * 17 is not 7 smooth. - corrected by _Jason Kimberley_, Nov 29 2012
a(5) = 103, the smallest prime not neighboring a 11-smooth number, since 11 is the 5th prime, and 103-1 = 102 = 2 * 3 * 17 is not 11 smooth, and 103+1 = 104 = 2^3 * 13 is not 11 smooth.
a(6) = 137, the smallest prime not neighboring a 13-smooth number, since 13 is the 6th prime, and 137-1 = 136 = 2^3 * 17 is not 13 smooth, and 137+1 = 138 = 2 * 3 * 23 is not 13 smooth.
-
a(n)=my(p=prime(n));forprime(q=6*p-1,,if(vecmax(factor(q-1)[,1])>p && vecmax(factor(q+1)[,1])>p,return(q))) \\ Charles R Greathouse IV, Nov 28 2012
A298882
a(1) = 1, and for any n > 1, if n is the k-th number with least prime factor p, then a(n) is the k-th number with greatest prime factor p.
Original entry on oeis.org
1, 2, 3, 4, 5, 8, 7, 16, 6, 32, 11, 64, 13, 128, 9, 256, 17, 512, 19, 1024, 12, 2048, 23, 4096, 10, 8192, 18, 16384, 29, 32768, 31, 65536, 24, 131072, 15, 262144, 37, 524288, 27, 1048576, 41, 2097152, 43, 4194304, 36, 8388608, 47, 16777216, 14, 33554432, 48
Offset: 1
The first terms, alongside A020639(n), are:
n a(n) lpf(n)
-- ---- ------
1 1 1
2 2 2
3 3 3
4 4 2
5 5 5
6 8 2
7 7 7
8 16 2
9 6 3
10 32 2
11 11 11
12 64 2
13 13 13
14 128 2
15 9 3
16 256 2
17 17 17
18 512 2
19 19 19
20 1024 2
A373944
Lexicographically earliest sequence of distinct positive integers such that for A(k) <= n < A(k+1); rad(Product_{i = 1..n} a(i)) = A002110(k), where A = A002110, rad = A007947, k >= 0, n >= 1.
Original entry on oeis.org
1, 2, 4, 8, 16, 3, 6, 9, 12, 18, 24, 27, 32, 36, 48, 54, 64, 72, 81, 96, 108, 128, 144, 162, 192, 216, 243, 256, 288, 5, 10, 15, 20, 25, 30, 40, 45, 50, 60, 75, 80, 90, 100, 120, 125, 135, 150, 160, 180, 200, 225, 240, 250, 270, 300, 320, 324, 360, 375, 384, 400
Offset: 1
k = 0 --> A(0) <= n < A(1) --> 1 <= n < 2 --> n = 1 --> a(1) = 1 since rad(1) = 1 = A(0).
k = 1 --> A(1) <= n < A(2) --> 2 <= n < 6 --> n = 2,3,4,5 --> a(2,3,4,5) = 2,4,8,16 (the first 4 terms of A000079, excluding 1).
k = 2 --> 6 <= n < 30 --> n = 6,7,8,9,...,29 --> a(6,7,8,9...,29) = 3,6,9,12,...,288 (the first 24 terms of A003586 excluding all above).
k = 3 --> 30 <= n < 210 --> n = 30,31,32,...,209 --> a(30,31,32,...,209) = 5,10,15,...,19200 (the first 180 terms of A051037 excluding all above).
Sequence can be presented as an irregular table T(n,k), in which the n-th row commences A008578(n); n >= 1, and T(n,k) is the k-th prime(n)-smooth number which has not appeared earlier.
Table starts:
1;
2,4,8,16;
3,6,9,12,18,24,27,32,...,288;
5,10,15,20,25,30,40,45,50,60,...,19200;
7,14,21,28,...,13829760;
Cf.
A000040,
A002110,
A002473,
A003586,
A007947,
A051037,
A051038,
A080197,
A080681,
A080682,
A080683.
-
(* First, load function f from A162306 *)
P = m = 1; Flatten@ Join[{{1}}, Reap[Do[P *= Prime[i]; (Sow@ Select[#, Nand[# <= m, FactorInteger[#][[-1, 1]] < Prime[i]] &]; m = #[[-1]]) &@ f[P, P^4][[;; P*Prime[i + 1] - 1]], {i, 3}] ][[-1, 1]]] (* Michael De Vlieger, Jun 24 2024 *)
A232668
Natural numbers that are not (primes, 11-smooth, perfect powers or base-10 palindromes).
Original entry on oeis.org
26, 34, 38, 39, 46, 51, 52, 57, 58, 62, 65, 68, 69, 74, 76, 78, 82, 85, 86, 87, 91, 92, 93, 94, 95, 102, 104, 106, 114, 115, 116, 117, 118, 119, 122, 123, 124, 129, 130, 133, 134, 136, 138, 142, 143, 145, 146, 148, 152, 153, 155, 156, 158, 159, 164
Offset: 1
16 is not in the sequence since it's a perfect power, 2^4.
19 is not in the sequence since it's prime.
18 is not in the sequence since it's 2*3*3, so it's 11-smooth.
22 is not in the sequence since it's a base 10 palindrome.
26 is in the sequence since it's 2*13, so it's not prime, not 11-smooth, not a base-10 palindrome, and not a perfect power.
-
public class Nnn {public static void main(String[] args) {String str = ""; for (int i = 0; i < 1000000 && str.length() < 250; i++) {if (isPrime(i) || isSmooth(11,i) || isPerfectPower(i) || isPalindrome(i)) {} else {str += i + ", ";}} System.out.println(str);} static boolean isPalindrome(int i) {return ((i+"").equals(new StringBuilder(i+"").reverse().toString()));} static boolean isSmooth(int s, int n) {if (n<2) return true; for (int i=2;i<=s;i++) {while (n%i==0) n=n/i;} return n==1;} static boolean isPerfectPower(int n) {for (int i=2;i<=Math.sqrt(n);i++) {int j=i*i; while (j
A363794
a(n) = smallest prime(n)-smooth number k such that r(k) >= r(P(n+1)), where r(n) = A010846(n) and P(n) = A002110(n).
Original entry on oeis.org
16, 72, 540, 6300, 92400, 1681680, 36756720, 921470550, 27886608750, 970453984500, 37905932634570
Offset: 1
a(1) = 16 since r(2^4) = 5 and r(6) = 5; numbers in row 16 of A162306 are its divisors {1, 2, 4, 8, 16}, while row 6 of A162306 is {1, 2, 3, 4, 6}.
a(2) = 72 = A003586(18) since r(72) = r(30) = 18. 72 is the 8th term in A003586 that is not in A000961.
a(3) = 540 since r(540) = 69 which exceeds r(210) = 68.
a(4) = 6300 since r(6300) = 290 which exceeds r(2310) = 283, etc.
Table showing the relationship of a(n) to r(P(n)) = A363061(n), with p(n) = prime(n), P(n+1) = A002110(n+1), r(a(n)) = A010846(a(n)), and j the index such that S(r(a(n))) = T(j) = a(n). a(n) = m*P(n).
n p(n) P(n+1) a(n) r(P(n)) r(a(n)) j m
--------------------------------------------------------------
1 2 6 16 5 5 4 8
2 3 30 72 18 18 8 12
3 5 210 540 68 69 13 18
4 7 2310 6300 283 290 22 30
5 11 30030 92400 1161 1165 29 40
6 13 510510 1681680 4843 4848 42 56
7 17 9699690 36756720 19985 19994 53 72
8 19 223092870 921470550 83074 83435 68 95
9 23 6469693230 27886608750 349670 351047 89 125
10 29 200560490130 970453984500 1456458 1457926 107 150
Cf.
A000079,
A000961,
A002110,
A002473,
A003586,
A007947,
A010846,
A051037,
A051038,
A080197,
A080681,
A080682,
A080683,
A162306,
A363061.
-
nn = 6; rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; f[x_] := FactorInteger[x][[-1, 1]]; S = Array[Product[Prime[i], {i, #}] &, nn + 1]; Table[Set[{p, q}, Prime[n + {0, 1}]]; r = Count[Range[S[[n + 1]]], _?(f[#] <= q &)]; c = k = 1; While[Or[c < r, rad[k] != S[[n]]], If[f[k] <= p, c++]; k++]; k, {n, nn}]
Comments