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 12 results. Next

A003586 3-smooth numbers: numbers of the form 2^i*3^j with i, j >= 0.

Original entry on oeis.org

1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 32, 36, 48, 54, 64, 72, 81, 96, 108, 128, 144, 162, 192, 216, 243, 256, 288, 324, 384, 432, 486, 512, 576, 648, 729, 768, 864, 972, 1024, 1152, 1296, 1458, 1536, 1728, 1944, 2048, 2187, 2304, 2592, 2916, 3072, 3456, 3888
Offset: 1

Views

Author

Paul Zimmermann, Dec 11 1996

Keywords

Comments

This sequence is easily confused with A033845, which gives numbers of the form 2^i*3^j with i, j >= 1. Don't simply say "numbers of the form 2^i*3^j", but specify which sequence you mean. - N. J. A. Sloane, May 26 2024
These numbers were once called "harmonic numbers", see Lenstra links. - N. J. A. Sloane, Jul 03 2015
Successive numbers k such that phi(6k) = 2k. - Artur Jasinski, Nov 05 2008
Where record values greater than 1 occur in A088468: A160519(n) = A088468(a(n)). - Reinhard Zumkeller, May 16 2009
Also numbers that are divisible by neither 6k - 1 nor 6k + 1, for all k > 0. - Robert G. Wilson v, Oct 26 2010
Also numbers m such that the rooted tree with Matula-Goebel number m has m antichains. The Matula-Goebel number of a rooted tree can be defined in the following recursive manner: to the one-vertex tree there corresponds the number 1; to a tree T with root degree 1 there corresponds the t-th prime number, where t is the Matula-Goebel number of the tree obtained from T by deleting the edge emanating from the root; to a tree T with root degree m>=2 there corresponds the product of the Matula-Goebel numbers of the m branches of T. The vertices of a rooted tree can be regarded as a partially ordered set, where u<=v holds for two vertices u and v if and only if u lies on the unique path between v and the root. An antichain is a nonempty set of mutually incomparable vertices. Example: m=4 is in the sequence because the corresponding rooted tree is \/=ARB (R is the root) having 4 antichains (A, R, B, AB). - Emeric Deutsch, Jan 30 2012
A204455(3*a(n)) = 3, and only for these numbers. - Wolfdieter Lang, Feb 04 2012
The number of terms less than or equal to n is Sum_{i=0..floor(log_2(n))} floor(log_3(n/2^i) + 1), or Sum_{i=0..floor(log_3(n))} floor(log_2(n/3^i) + 1), which requires fewer terms to compute. - Robert G. Wilson v, Aug 17 2012
Named 3-friables in French. - Michel Marcus, Jul 17 2013
In the 14th century Levi Ben Gerson proved that the only pairs of terms which differ by 1 are (1,2), (2,3), (3,4), and (8,9); see A235365, A235366, A236210. - Jonathan Sondow, Jan 20 2014
Range of values of A000005(n) (and also A181819(n)) for cubefree numbers n. - Matthew Vandermast, May 14 2014
A036561 is a permutation of this sequence. - L. Edson Jeffery, Sep 22 2014
Also the sorted union of A000244 and A007694. - Lei Zhou, Apr 19 2017
The sum of the reciprocals of the 3-smooth numbers is equal to 3. Brief proof: 1 + 1/2 + 1/3 + 1/4 + 1/6 + 1/8 + 1/9 + ... = (Sum_{k>=0} 1/2^k) * (Sum_{m>=0} 1/3^m) = (1/(1-1/2)) * (1/(1-1/3)) = (2/(2-1)) * (3/(3-1)) = 3. - Bernard Schott, Feb 19 2019
Also those integers k for which, for every prime p > 3, p^(2k) - 1 == 0 (mod 24k). - Federico Provvedi, May 23 2022
For n>1, the exponents’ parity {parity(i), parity(j)} of one out of four consecutive terms is {odd, odd}. Therefore, for n>1, at least one out of every four consecutive terms is a Zumkeller number (A083207). If for the term whose parity is {even, odd}, even also means nonzero, then this term is also a Zumkeller number (as is the case with the last of the four consecutive terms 1296, 1458, 1536, 1728). - Ivan N. Ianakiev, Jul 10 2022
Except the initial terms 2, 3, 4, 8, 9 and 16, these are numbers k such that k^6 divides 6^k. Except the initial terms 2, 3, 4, 6, 8, 9, 16, 18 and 27, these are numbers k such that k^12 divides 12^k. - Mohammed Yaseen, Jul 21 2022
In music theory, a comma is a ratio, close to 1 (typically less than 1.04), between two natural numbers divisible by only small primes (typically single digit). In this sequence, a(131) / a(130) = 531441 / 524288 ~ 1.013643 is the Pythagorean comma (A221363), the difference between 12 perfect fifths and 7 octaves. - Hal M. Switkay, Mar 23 2025

References

  • J.-M. De Koninck & A. Mercier, 1001 Problèmes en Théorie Classique des Nombres, Problème 654 pp. 85, 287-8, Ellipses Paris 2004.
  • S. Ramanujan, Collected Papers, Ed. G. H. Hardy et al., Cambridge 1927; Chelsea, NY, 1962, p. xxiv.
  • R. Tijdeman, Some applications of Diophantine approximation, pp. 261-284 of Surveys in Number Theory (Urbana, May 21, 2000), ed. M. A. Bennett et al., Peters, 2003.

Crossrefs

Cf. A051037, A002473, A051038, A080197, A080681, A080682, A117221, A105420, A062051, A117222, A117220, A090184, A131096, A131097, A186711, A186712, A186771, A088468, A061987, A080683 (p-smooth numbers with other values of p), A025613 (a subsequence).
Cf. also A000244, A007694. - Lei Zhou, Apr 19 2017
Cf. A191475 (successive values of i), A191476 (successive values of j), A022330 (indices of the pure terms 2^i), A022331 (indices of the pure terms 3^j). - N. J. A. Sloane, May 26 2024
Cf. A221363.

Programs

  • Haskell
    import Data.Set (Set, singleton, insert, deleteFindMin)
    smooth :: Set Integer -> [Integer]
    smooth s = x : smooth (insert (3*x) $ insert (2*x) s')
      where (x, s') = deleteFindMin s
    a003586_list = smooth (singleton 1)
    a003586 n = a003586_list !! (n-1)
    -- Reinhard Zumkeller, Dec 16 2010
    
  • Magma
    [n: n in [1..4000] | PrimeDivisors(n) subset [2,3]]; // Bruno Berselli, Sep 24 2012
  • Maple
    A003586 := proc(n) option remember; if n = 1 then 1; else for a from procname(n-1)+1 do numtheory[factorset](a) minus {2,3} ; if % = {} then return a; end if; end do: end if; end proc: # R. J. Mathar, Feb 28 2011
    with(numtheory): for i from 1 to 23328 do if(i/phi(i)=3)then print(i/6) fi od; # Gary Detlefs, Jun 28 2011
  • Mathematica
    a[1] = 1; j = 1; k = 1; n = 100; For[k = 2, k <= n, k++, If[2*a[k - j] < 3^j, a[k] = 2*a[k - j], {a[k] = 3^j, j++}]]; Table[a[i], {i, 1, n}] (* Hai He (hai(AT)mathteach.net) and Gilbert Traub, Dec 28 2004 *)
    aa = {}; Do[If[EulerPhi[6 n] == 2 n, AppendTo[aa, n]], {n, 1, 1000}]; aa (* Artur Jasinski, Nov 05 2008 *)
    fQ[n_] := Union[ MemberQ[{1, 5}, # ] & /@ Union@ Mod[ Rest@ Divisors@ n, 6]] == {False}; fQ[1] = True; Select[ Range@ 4000, fQ] (* Robert G. Wilson v, Oct 26 2010 *)
    powerOfTwo = 12; Select[Nest[Union@Join[#, 2*#, 3*#] &, {1}, powerOfTwo-1], # < 2^powerOfTwo &] (* Robert G. Wilson v and T. D. Noe, Mar 03 2011 *)
    fQ[n_] := n == 3 EulerPhi@ n; Select[6 Range@ 4000, fQ]/6 (* Robert G. Wilson v, Jul 08 2011 *)
    mx = 4000; Sort@ Flatten@ Table[2^i*3^j, {i, 0, Log[2, mx]}, {j, 0, Log[3, mx/2^i]}] (* Robert G. Wilson v, Aug 17 2012 *)
    f[n_] := Block[{p2, p3 = 3^Range[0, Floor@ Log[3, n] + 1]}, p2 = 2^Floor[Log[2, n/p3] + 1]; Min[ Select[ p2*p3, IntegerQ]]]; NestList[f, 1, 54] (* Robert G. Wilson v, Aug 22 2012 *)
    Select[Range@4000, Last@Map[First, FactorInteger@#] <= 3 &] (* Vincenzo Librandi, Aug 25 2016 *)
    Select[Range[4000],Max[FactorInteger[#][[All,1]]]<4&] (* Harvey P. Dale, Jan 11 2017 *)
  • PARI
    test(n)=for(p=2,3, while(n%p==0, n/=p)); n==1;
    for(n=1,4000,if(test(n),print1(n",")))
    
  • PARI
    list(lim)=my(v=List(),N);for(n=0,log(lim\1+.5)\log(3),N=3^n;while(N<=lim,listput(v,N);N<<=1));vecsort(Vec(v)) \\ Charles R Greathouse IV, Jun 28 2011
    
  • PARI
    is_A003586(n)=n<5||vecmax(factor(n,5)[, 1])<5 \\ M. F. Hasler, Jan 16 2015
    
  • PARI
    list(lim)=my(v=List(), N); for(n=0, logint(lim\=1,3), N=3^n; while(N<=lim, listput(v, N); N<<=1)); Set(v) \\ Charles R Greathouse IV, Jan 10 2018
    
  • Python
    from itertools import count, takewhile
    def aupto(lim):
        pows2 = list(takewhile(lambda x: xMichael S. Branicky, Jul 08 2022
    
  • Python
    from sympy import integer_log
    def A003586(n):
        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 f(x): return n+x-sum((x//3**i).bit_length() for i in range(integer_log(x,3)[0]+1))
        return bisection(f,n,n) # Chai Wah Wu, Sep 15 2024
    
  • Python
    # faster for initial segment of sequence
    import heapq
    from itertools import islice
    def A003586gen(): # generator of terms
        v, oldv, h, psmooth_primes, = 1, 0, [1], [2, 3]
        while True:
            v = heapq.heappop(h)
            if v != oldv:
                yield v
                oldv = v
                for p in psmooth_primes:
                    heapq.heappush(h, v*p)
    print(list(islice(A003586gen(), 65))) # Michael S. Branicky, Sep 17 2024
    (C++) // Returns A003586 <= threshold without approximations nor sorting
    #include 
    std::forward_list A003586(const int threshold) {
        std::forward_list sequence;
        auto start_it = sequence.before_begin();
        for (int i = 1; i <= threshold; i *= 2) {
            for (int inc = 1; std::next(start_it) != sequence.end() && inc <= i; inc *= 3)
                ++start_it;
            auto it = start_it;
            for (int j = 1; i * j <= threshold; j *= 3) {
                sequence.emplace_after(it, i * j);
                for (int inc = 1; std::next(it) != sequence.end() && inc <= i; inc *= 2)
                    ++it;
            }
        }
        return sequence;
    } // Eben Gino Lester, Apr 17 2025
    
  • Sage
    def isA003586(n) :
        return not any(d != 2 and d != 3 for d in prime_divisors(n))
    @CachedFunction
    def A003586(n) :
        if n == 1 : return 1
        k = A003586(n-1) + 1
        while not isA003586(k) : k += 1
        return k
    [A003586(n) for n in (1..55)] # Peter Luschny, Jul 20 2012
    

Formula

An asymptotic formula for a(n) is roughly a(n) ~ 1/sqrt(6)*exp(sqrt(2*log(2)*log(3)*n)). - Benoit Cloitre, Nov 20 2001
A061987(n) = a(n + 1) - a(n), a(A084791(n)) = A084789(n), a(A084791(n) + 1) = A084790(n). - Reinhard Zumkeller, Jun 03 2003
Union of powers of 2 and 3 with n such that psi(n) = 2*n, where psi(n) = n*Product_(1 + 1/p) over all prime factors p of n = A001615(n). - Lekraj Beedassy, Sep 07 2004; corrected by Franklin T. Adams-Watters, Mar 19 2009
a(n) = 2^A022328(n)*3^A022329(n). - N. J. A. Sloane, Mar 19 2009
The characteristic function of this sequence is given by Sum_{n >= 1} x^a(n) = Sum_{n >= 1} moebius(6*n)*x^n/(1 - x^n). - Paul D. Hanna, Sep 18 2011
a(n) = A007694(n+1)/2. - Lei Zhou, Apr 19 2017

Extensions

Deleted claim that this sequence is union of 2^n (A000079) and 3^n (A000244) sequences -- this does not include the terms which are not pure powers. - Walter Roscello (wroscello(AT)comcast.net), Nov 16 2008

A020914 Number of digits in the base-2 representation of 3^n.

Original entry on oeis.org

1, 2, 4, 5, 7, 8, 10, 12, 13, 15, 16, 18, 20, 21, 23, 24, 26, 27, 29, 31, 32, 34, 35, 37, 39, 40, 42, 43, 45, 46, 48, 50, 51, 53, 54, 56, 58, 59, 61, 62, 64, 65, 67, 69, 70, 72, 73, 75, 77, 78, 80, 81, 83, 85, 86, 88, 89, 91, 92, 94, 96, 97, 99, 100, 102, 104, 105, 107
Offset: 0

Views

Author

Keywords

Comments

Also, numbers k such that the first digit in the ternary expansion of 2^k is 1. - Mohammed Bouayoun (Mohammed.bouayoun(AT)sanef.com), Apr 24 2006
a(n) is the smallest integer such that n/a(n) < log_2(3). - Trevor G. Hyde (thyde12(AT)amherst.edu), Jul 31 2008
This sequence represents allowable values of the "dropping time" in the Collatz (3x+1) problem when iterated according to the function f(n) := n/2 if n is even, (3n+1)/2 otherwise, as tabulated in A126241. There is one exception, A126241(1), which has been set to zero by convention. - K. Spage, Oct 22 2009
An integer k is a term of A020914 if and only if floor(k*(1 + log(2)/log(3))) - abs(k-1)*(1 + log(2)/log(3)) - 1 >= 0. - K. Spage, Oct 22 2009
Also smallest k such that ceiling(2^k / 3^n) = 2. - Michel Lagneau, Jan 31 2012
For n > 0, first differences of A022330. - Michel Marcus, Oct 03 2013
Also the number of powers of two less than or equal to 3^n. - Robert G. Wilson v, May 25 2014
Except for 1, A020914 is the complement of A054414 and therefore these two form a pair of Beatty sequences. - Robert G. Wilson v, May 25 2014

Crossrefs

Cf. A056576, A054414, A070939, A000244, A227048, A022330, A022921 (first differences), A126241.
Cf. A020857 (decimal expansion of log_2(3)).
Cf. A020915.
Cf. A204399 (essentially the same).

Programs

Formula

a(n) = floor(1 + n*log(3)/log(2)). - K. Spage, Oct 22 2009
a(0) = 1, a(n+1) = a(n) + A022921(n). - K. Spage, Oct 23 2009
a(n) = A122437(n-1) - n. - K. Spage, Oct 23 2009
A098294(n) = a(n) + n for n > 0. - Mike Winkler, Dec 31 2010
a(n) = A070939(A000244(n)) = length of n-th row in triangle A227048. - Reinhard Zumkeller, Jun 30 2013
a(n) = 1 + floor(n*log_2(3)) = 1 + A056576(n) = 1 + floor(n*A020857). - L. Edson Jeffery, Dec 12 2014
A020915(a(n)) = n + 1. - Reinhard Zumkeller, Mar 28 2015

Extensions

More terms from Stefan Steinerberger, Apr 19 2006

A071521 Number of 3-smooth numbers <= n.

Original entry on oeis.org

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

Views

Author

Benoit Cloitre, Jun 02 2002

Keywords

Comments

A 3-smooth number is a number of the form 2^x * 3^y where x >= 0 and y >= 0.

References

  • Bruce C. Berndt and Robert A. Rankin, "Ramanujan : letters and commentary", History of Mathematics Volume 9, AMS-LMS, p. 23, p. 35.
  • G. H. Hardy, Ramanujan: Twelve lectures on subjects suggested by his life and work, AMS Chelsea Pub., 1999, pages 67-82.

Crossrefs

Programs

  • Haskell
    a071521 n = length $ takeWhile (<= n) a003586_list
    -- Reinhard Zumkeller, Aug 14 2011
    
  • Maple
    N:= 10000: # to get a(1) to a(N)
    V:= Vector(N):
    for y from 0 to floor(log[3](N)) do
      for x from 0 to ilog2(N/3^y) do
        V[2^x*3^y]:= 1
    od od:
    convert(map(round,Statistics:-CumulativeSum(V)),list); # Robert Israel, Dec 16 2014
  • Mathematica
    a[n_] := Sum[ MoebiusMu[6k]*Floor[n/k], {k, 1, n}]; Table[a[n], {n, 1, 75}] (* Jean-François Alcover, Oct 11 2011, after Benoit Cloitre *)
    f[n_] := Sum[Floor@Log[3, n/2^i] + 1, {i, 0, Log[2, n]}]; Array[f, 75] (* faster, or *)
    f[n_] := Sum[Floor@Log[2, n/3^i] + 1, {i, 0, Log[3, n]}]; Array[f, 75] (* Robert G. Wilson v, Aug 18 2012 *)
    Accumulate[Table[If[Max[FactorInteger[n][[All,1]]]<4,1,0],{n,80}]] (* Harvey P. Dale, Jan 11 2017 *)
  • PARI
    for(n=1,100,print1(sum(k=1,n,if(sum(i=3,n,if(k%prime(i),0,1)),0,1)),","))
    
  • PARI
    a(n)=sum(k=1,n,moebius(2*3*k)*floor(n/k)) \\ Benoit Cloitre, Jun 14 2007
    
  • PARI
    a(n)=my(t=1/3); sum(k=0,logint(n,3), t*=3; logint(n\t,2)+1) \\ Charles R Greathouse IV, Jan 08 2018
    
  • Python
    from sympy import integer_log
    def A071521(n): return sum((n//3**i).bit_length() for i in range(integer_log(n,3)[0]+1)) # Chai Wah Wu, Sep 15 2024

Formula

a(n) = Card{ k | A003586(k) <= n }. Asymptotically: let a=1/(2*log(2)*log(3)), b=sqrt(6), then from Ramanujan a(n) ~ a*log(2*n)*log(3*n) or equivalently a(n) ~ a*log(b*n)^2.
A022331(n) = a(A000079(n)); A022330(n) = a(A000244(n)). - Reinhard Zumkeller, May 09 2006
a(n) = Sum_{k=1..n} mu(6k)*floor(n/k). - Benoit Cloitre, Jun 14 2007
a(n) = Sum_{k=1..n} (floor(6^k/k)-floor((6^k-1)/k)). - Anthony Browne, May 19 2016
From Ridouane Oudra, Jul 17 2020: (Start)
a(n) = Sum_{i=0..floor(log_2(n))} (floor(log_3(n/2^i)) + 1).
a(n) = Sum_{i=0..floor(log_3(n))} (floor(log_2(n/3^i)) + 1). (End)
A322026(n) = a(A065331(n)). - Antti Karttunen, Sep 08 2024

A022331 Index of 2^n within sequence of numbers of form 2^i*3^j (A003586).

Original entry on oeis.org

1, 2, 4, 6, 9, 13, 17, 22, 28, 34, 41, 48, 56, 65, 74, 84, 95, 106, 118, 130, 143, 157, 171, 186, 202, 218, 235, 253, 271, 290, 309, 329, 350, 371, 393, 416, 439, 463, 487, 512, 538, 564, 591, 619, 647, 676, 706, 736, 767, 798, 830, 863, 896, 930, 965, 1000, 1036, 1072
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A000079, A003586, A071521, A020915 (first differences), A152747.
Cf. A022330 (index of 3^n within A003586).

Programs

  • Mathematica
    c[0] = 1; c[n_] := 1 + Sum[Ceiling[j*Log[3, 2]], {j, n}]; Table[c[i], {i, 0, 60}] (* Norman Carey, Jun 13 2012 *)
  • PARI
    a(n)=my(t=1);1+n+sum(k=1,n,logint(t*=2,3)) \\ Ruud H.G. van Tol, Nov 25 2022
    
  • Python
    from sympy import integer_log
    def A022331(n):
        m = 1<Chai Wah Wu, Sep 16 2024

Formula

a(n) = A071521(A000079(n)); A003586(a(n)) = A000079(n). - Reinhard Zumkeller, May 09 2006
a(n) ~ c * n^2, where c = log(2)/(2*log(3)) (A152747). - Amiram Eldar, Apr 07 2023

A202821 Position of 6^n among 3-smooth numbers A003586.

Original entry on oeis.org

1, 5, 14, 26, 43, 64, 89, 119, 153, 191, 233, 279, 330, 385, 444, 507, 575, 646, 722, 802, 886, 975, 1067, 1164, 1266, 1371, 1481, 1595, 1713, 1835, 1961, 2092, 2227, 2366, 2509, 2657, 2809, 2965, 3125, 3289, 3458, 3630, 3807, 3989, 4174, 4364, 4558, 4756
Offset: 0

Views

Author

Zak Seidov, Dec 25 2011

Keywords

Examples

			a(0) = 1 because A003586(1) = 6^0 = 1.
a(1) = 5 because A003586(5) = 6^1 = 6.
a(2) = 14 because A003586(14) = 6^2 = 36.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Sum[Floor[Log[3, 6^n/2^i]] + 1, {i, 0, Log2[6^n]}]; Array[a, 50, 0] (* Amiram Eldar, Jul 15 2023 *)
  • Python
    # uses imports/function in A372401
    print(list(islice(A372401gen(p=3), 1000))) # Michael S. Branicky, Jun 06 2024
    
  • Python
    from sympy import integer_log
    def A202821(n): return 1+n*(n+1)+sum((m:=3**i).bit_length()+((1<Chai Wah Wu, Oct 22 2024

Formula

A003586(a(n)) = 6^n, for n >= 0.
a(n) ~ (log(6))^2/(log(3)*log(4))*n^2 = 2.1079...*n^2.

A372401 Position of 210^n among 7-smooth numbers A002473.

Original entry on oeis.org

1, 68, 547, 2119, 5817, 13008, 25412, 45078, 74409, 116147, 173379, 249532, 348375, 474018, 630922, 823885, 1058051, 1338898, 1672260, 2064302, 2521535, 3050825, 3659361, 4354687, 5144682, 6037582, 7041946, 8166692, 9421074, 10814695, 12357491, 14059744, 15932086, 17985473
Offset: 0

Views

Author

Michael De Vlieger, Jun 03 2024

Keywords

Comments

Also position of 210^(n+1) in A147571.

Crossrefs

Programs

  • Mathematica
    Table[
      Sum[Floor@ Log[7, 210^n/(2^i*3^j*5^k)] + 1,
        {i, 0, Log[2, 210^n]},
        {j, 0, Log[3, 210^n/2^i]},
        {k, 0, Log[5, 210^n/(2^i*3^j)]}],
      {n, 0, 12}]
  • Python
    import heapq
    from itertools import islice
    from sympy import primerange
    def A372401gen(p=7): # generator for p-smooth terms
        v, oldv, psmooth_primes, = 1, 0, list(primerange(1, p+1))
        h = [(1, [0]*len(psmooth_primes))]
        idx = {psmooth_primes[i]:i for i in range(len(psmooth_primes))}
        loc = 0
        while True:
            v, e = heapq.heappop(h)
            if v != oldv:
                loc += 1
                if len(set(e)) == 1:
                    yield loc
                oldv = v
                for p in psmooth_primes:
                    vp, ep = v*p, e[:]
                    ep[idx[p]] += 1
                    heapq.heappush(h, (v*p, ep))
    print(list(islice(A372401gen(), 15))) # Michael S. Branicky, Jun 05 2024
    
  • Python
    from sympy import integer_log
    def A372401(n):
        c, x = 0, 210**n
        for i in range(integer_log(x,7)[0]+1):
            for j in range(integer_log(m:=x//7**i,5)[0]+1):
                for k in range(integer_log(r:=m//5**j,3)[0]+1):
                    c += (r//3**k).bit_length()
        return c # Chai Wah Wu, Sep 16 2024

Formula

a(n) ~ c * n^4, where c = log(210)^4/(24*log(2)*log(3)*log(5)*log(7)) = 14.282278766622... - Vaclav Kotesovec and Amiram Eldar, Sep 22 2024

A372402 Position of 2310^n among 11-smooth numbers A051038.

Original entry on oeis.org

1, 283, 3847, 20996, 74228, 203084, 469053, 960396, 1797086, 3135610, 5173909, 8156188, 12377846, 18190320, 26005929, 36302854, 49629820, 66611231, 87951744, 114441450, 146960432, 186483973, 234087084, 290949702, 358361266, 437725888, 530566933, 638532124, 763398291, 907076258
Offset: 0

Views

Author

Michael De Vlieger, Jun 03 2024

Keywords

Comments

Also position of 2310^(n+1) in A147572.

Crossrefs

Programs

  • Mathematica
    Table[
      Sum[Floor@ Log[11, 2310^n/(2^i*3^j*5^k*7^m)] + 1,
        {i, 0, Log[2, 2310^n]},
        {j, 0, Log[3, 2310^n/2^i]},
        {k, 0, Log[5, 2310^n/(2^i*3^j)]},
        {m, 0, Log[7, 2310^n/(2^i*3^j*5^k)]}],
      {n, 0, 8}]
  • Python
    # uses imports/function in A372401
    print(list(islice(A372401gen(p=11), 7))) # Michael S. Branicky, Jun 05 2024
    
  • Python
    from sympy import integer_log, prevprime
    def A372402(n):
        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))
        return g(2310**n,11) # Chai Wah Wu, Sep 16 2024

Extensions

a(14)-a(18) from Michael S. Branicky, Jun 05 2024
More terms from David A. Corneth, Jun 05 2024

A025747 Index of 10^n within sequence of numbers of form 9^i*10^j.

Original entry on oeis.org

1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 254, 278, 303, 329, 356, 384, 413, 443, 474, 506, 539, 573, 608, 644, 681, 719, 758, 798, 839, 881, 924, 969, 1015, 1062, 1110, 1159, 1209, 1260, 1312, 1365, 1419, 1474, 1530, 1587
Offset: 0

Views

Author

Keywords

Comments

Positions of zeros in A025683. - R. J. Mathar, Jul 06 2025

Crossrefs

Programs

  • Maple
    N:= 10^60: # for a(0)..a(log[10](N))
    L:= sort([seq(seq(9^i*10^j, j=0..ilog10(N/9^i)),i=0..floor(log[9](N)))]):
    select(t -> L[t] mod 9 <> 0, [$1..nops(L)]); # Robert Israel, May 12 2020

Extensions

Offset corrected by Robert Israel, May 12 2020

A025723 Index of 7^n within sequence of numbers of form 5^i*7^j.

Original entry on oeis.org

1, 3, 6, 10, 15, 22, 30, 39, 49, 60, 73, 87, 102, 118, 135, 154, 174, 195, 217, 240, 265, 291, 318, 346, 376, 407, 439, 472, 506, 542, 579, 617, 656, 696, 738, 781, 825, 870, 916, 964, 1013, 1063, 1114, 1166, 1220, 1275, 1331, 1388, 1447, 1507, 1568, 1630, 1693
Offset: 0

Views

Author

Keywords

Comments

Positions of zeros in A025652. - R. J. Mathar, Jul 06 2025

Crossrefs

Cf. A025708, A022330, A022331, etc.

Programs

  • Maple
    ListTools:-PartialSums([1,seq(ceil(k*log[5](7)),k=1..100)]); # Robert Israel, Nov 16 2016
  • Mathematica
    Table[1 + Sum[Ceiling[k Log[5, 7]], {k, n}], {n, 0, 52}] (* Michael De Vlieger, Nov 16 2016 *)
  • PARI
    a(n)=my(N=1); n+1+sum(i=1, n, logint(N*=7, 5)); \\ Charles R Greathouse IV, Jan 11 2018
    
  • PARI
    first(n)=my(s, N=1/7); vector(n+1, i, s+=logint(N*=7, 5)+1) \\ Charles R Greathouse IV, Jan 11 2018

Formula

a(n) = 1 + Sum_{k=1..n} ceiling(k*log_5(7)). - Robert Israel, Nov 16 2016

Extensions

Offset changed to 0 by Robert Israel, Nov 16 2016

A096075 Least common multiple of first n 3-smooth numbers.

Original entry on oeis.org

1, 2, 6, 12, 12, 24, 72, 72, 144, 144, 144, 432, 864, 864, 864, 864, 1728, 1728, 5184, 5184, 5184, 10368, 10368, 10368, 10368, 10368, 31104, 62208, 62208, 62208, 62208, 62208, 62208, 124416, 124416, 124416, 373248, 373248, 373248, 373248, 746496
Offset: 1

Views

Author

Reinhard Zumkeller, Jul 21 2004

Keywords

Comments

Subsequence of A003586.

Examples

			The first seven 3-smooth numbers are {1, 2, 3, 4, 6, 8, 9} and their lcm is 72. - _David A. Corneth_, Jul 13 2023
		

Crossrefs

Programs

  • Mathematica
    seq[max_] := Module[{sm3 = Sort[Flatten[Table[2^i*3^j, {i, 0, Log2[max]}, {j, 0, Log[3, max/2^i]}]]], e2, e3}, e2 = FoldList[Max, IntegerExponent[sm3, 2]]; e3 = FoldList[Max, IntegerExponent[sm3, 3]]; 2^e2*3^e3]; seq[1000] (* Amiram Eldar, Jul 13 2023 *)

Formula

a(n) > a(n-1) iff A003586(n) is a power of 2 or of 3 (cf. A006899, A022330, A022331).
Showing 1-10 of 12 results. Next