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.

Previous Showing 31-40 of 49 results. Next

A054893 a(n) = Sum_{j > 0} floor(n/4^j).

Original entry on oeis.org

0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24
Offset: 0

Views

Author

Henry Bottomley, May 23 2000

Keywords

Comments

Different from highest power of 4 dividing n! (see A090616).

Examples

			  a(10^0) = 0.
  a(10^1) = 2.
  a(10^2) = 32.
  a(10^3) = 330.
  a(10^4) = 3331.
  a(10^5) = 33330.
  a(10^6) = 333330.
  a(10^7) = 3333329.
  a(10^8) = 33333328.
  a(10^9) = 333333326.
		

Crossrefs

Cf. A053737, A235127 (first differences).

Programs

  • Magma
    function A054893(n)
      if n eq 0 then return n;
      else return A054893(Floor(n/4)) + Floor(n/4);
      end if; return A054893;
    end function;
    [A054893(n): n in [0..103]]; // G. C. Greubel, Feb 09 2023
    
  • Mathematica
    Table[t=0; p=4; While[s=Floor[n/p]; t=t+s; s>0, p *= 4]; t, {n,0,100}]
    Table[Total[Floor/@(n/NestList[4#&,4,6])],{n,0,80}] (* Harvey P. Dale, Jun 12 2022 *)
  • PARI
    a(n) = (n - sumdigits(n,4))/3; \\ Kevin Ryde, Jan 08 2024
  • SageMath
    def A054893(n):
        if (n==0): return 0
        else: return A054893(n//4) + (n//4)
    [A054893(n) for n in range(104)] # G. C. Greubel, Feb 09 2023
    

Formula

a(n) = floor(n/4) + floor(n/16) + floor(n/64) + floor(n/256) + ...
a(n) = (n - A053737(n))/3.
From Hieronymus Fischer, Sep 15 2007: (Start)
a(n) = a(floor(n/4)) + floor(n/4).
a(4*n) = a(n) + n.
a(n*4^m) = a(n) + n*(4^m-1)/3.
a(k*4^m) = k*(4^m-1)/3, for 0 <= k < 4, m >= 0.
Asymptotic behavior:
a(n) = n/3 + O(log(n)),
a(n+1) - a(n) = O(log(n)); this follows from the inequalities below.
a(n) <= (n-1)/3; equality holds true for powers of 4.
a(n) >= (n-3)/3 - floor(log_4(n)); equality holds true for n = 4^m - 1, m>0. lim inf (n/3 - a(n)) = 1/3, for n-->oo.
lim sup (n/3 - log_4(n) - a(n)) = 0, for n-->oo.
lim sup (a(n+1) - a(n) - log_4(n)) = 0, for n-->oo.
G.f.: (1/(1-x))*Sum_{k > 0} x^(4^k)/(1-x^(4^k)). (End)
Partial sums of A235127. - R. J. Mathar, Jul 08 2021

Extensions

Edited by Hieronymus Fischer, Sep 15 2007
Examples added by Hieronymus Fischer, Jun 06 2012

A065039 If n in base 10 is d_1 d_2 ... d_k then a(n) = d_1 + d_1d_2 + d_1d_2d_3 + ... + d_1...d_k.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 66, 67, 68, 69, 70
Offset: 0

Views

Author

Santi Spadaro, Nov 04 2001

Keywords

Comments

a(n) = (D(n) - sod(n))/9, for n >= 1, with sod(n) the sum of digits of n, and with D(n) any of the 10 numbers given in base 10 representation by d_(nod(n)-1) d_(nod(n)-2) ... d_0 b_0, where nod(n) is the number of digits of n = d_(nod(n)-1) d_(nod(n)-2) ... d_0 in base 10, and b_0 from {0, 1, ..., 9}. E.g., D(1234) stands for any number from {12340, 12341, ..., 12349}. This corresponds the well known (and easy to prove) rule that any number after subtraction of its sum of digits is divisible by 9. In this subtraction any of the last digit b_0 leads to the same result. Some mathematical tricks are based on this rule. See the Gardner reference. - Wolfdieter Lang, May 04 2010

Examples

			a(1234)=1370 because 1+12+123+1234=1370.
With repunits: a(1234) = 4*1 + 3*11 + 2*111 + 1*1111 = 1370. - _Wolfdieter Lang_, May 04 2010
		

References

  • M. Gardner, Mathematische Zaubereien, Dumont, 2004, p. 39. German translation of: Mathematics, Magic and Mystery, Dover, 1956. [From Wolfdieter Lang, May 04 2010]

Crossrefs

Programs

  • Haskell
    import Data.List (inits)
    a065039 n = sum $ map read $ tail $ inits $ show n
    -- Reinhard Zumkeller, Mar 31 2011
  • Maple
    A065039 := proc(n) local d,m: d:=convert(n,base,10): m:=nops(d): return add(op(convert(d[(m-k+1)..m], base, 10, 10^m)),k=1..m): end: seq(A065039(n),n=0..64); # Nathaniel Johnston, Jun 27 2011
  • Mathematica
    a[n_] := Apply[Plus, Table[FromDigits[Take[IntegerDigits[n], k]], {k, 1, Length[IntegerDigits[n]]}]]
    Table[d = IntegerDigits[n]; rd = 0; While[ Length[d] > 0, rd = rd + FromDigits[d]; d = Drop[d, -1]]; rd, {n, 0, 75} ]
    f[n_] := Plus @@ NestList[ Quotient[ #, 10] &, n, Max[1, Floor@ Log[10, n]]]; Array[f, 70, 0] (* Robert G. Wilson v, Jun 29 2010 *)
    Array[Total[Table[FromDigits[Take[IntegerDigits[#],x]],{x, IntegerLength[ #]}]]&,100,0](* Harvey P. Dale, Jan 02 2016 *)
  • PARI
    { for (n=0, 1000, a=0; k=n; until (k==0, a+=k; k\=10); write("b065039.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 04 2009
    

Formula

a(n) = sum( k>=0, floor(n/10^ k)) = n+A054899(n). - Benoit Cloitre, Aug 03 2002
From Hieronymus Fischer, Aug 14 2007: (Start)
a(10*n)=10*n+a(n); a(n*10^m)=10*n*(10^m-1)/9+a(n).
a(k*10^m)=k*(10^(m+1)-1)/2, 0<=k<10, m>=0.
a(n)=10/9*n+O(log(n)), a(n+1)-a(n)=O(log(n)); this follows from the inequalities below.
a(n)<=(10*n-1)/9; equality holds for powers of 10.
a(n)>=(10*n-9)/9-floor(log_10(n)); equality holds for n=10^m-1, m>0.
lim inf (10*n/9-a(n))=1/9, for n-->oo.
lim sup (10*n/9-log_10(n)-a(n))=0, for n-->oo.
lim sup (a(n+1)-a(n)-log_10(n))=1, for n-->oo.
G.f.: sum{k>=0, x^(10^k)/(1-x^(10^k))}/(1-x).
(End)
a(n) = sum(d_(k)*RU(k+1),k=0..nod(n)-1), with the notation nod(n)and d_k given in a comment above, and RU(k)is the repunit (10^k-1)/9 (k times 1). - Wolfdieter Lang, May 04 2010

A132271 Product{k>=0, 1+floor(n/10^k)}.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 306, 312, 318, 324, 330, 336, 342, 348, 354, 360, 427
Offset: 0

Views

Author

Hieronymus Fischer, Aug 20 2007

Keywords

Comments

If n is written in base-10 as n=d(m)d(m-1)d(m-2)...d(2)d(1)d(0) (where d(k) is the digit at position k) then a(n) is also the product (1+d(m)d(m-1)d(m-2)...d(2)d(1)d(0))*(1+d(m)d(m-1)d(m-2)...d(2)d(1))*(1+d(m)d(m-1)d(m-2)...d(2))*...*(1+d(m)d(m-1)d(m-2))*(1+d(m)d(m-1))*(1+d(m)).

Examples

			a(12)=(1+floor(12/10^0))*(1+floor(12/10^1))=13*2=26; a(21)=63 since 21=21(base-10) and so
a(21)=(1+21)*(1+2)(base-10)=22*3=66.
		

Crossrefs

For the product of terms floor(n/p^k) see A098844, A067080, A132027-A132033, A132263, A132264.

Programs

  • Mathematica
    f[n_] := Block[{k = 0, p = 1}, While[a = Floor[n/10^k]; a > 0, p *= 1 + a; k++]; p]; Array[f, 61, 0] (* Robert G. Wilson v, May 10 2011 *)
    Table[Product[1+Floor[n/10^k],{k,0,n}],{n,0,60}] (* Harvey P. Dale, May 14 2019 *)

Formula

The following formulas are given for a general parameter p considering the product of terms 1+floor(n/p^k) for 0<=k<=floor(log_p(n)), where p=10 for this sequence.
Recurrence: a(n)=(1+n)*a(floor(n/p)); a(pn)=(1+pn)*a(n); a(n*p^m)=product{1<=k<=m, 1+n*p^k}*a(n).
a(k*p^m-j)=(k*p^m-j+1)*k^m*p^(m(m-1)/2), for 0=1, a(p^m)=p^(m(m+1)/2)*product{0<=k<=m, 1+1/p^k}, m>=1.
a(n)=A132272(p*n)=(1+n)*A132272(n).
Asymptotic behavior: a(n)=O(n^((1+log_p(n))/2)); this follows from the inequalities below.
a(n)<=A067080(n)*product{0<=k<=floor(log_p(n)), 1+1/p^k}.
a(n)>=A067080(n)/product{1<=k<=floor(log_p(n)), 1-1/p^k}.
a(n)A000217(log_p(n)), where c=product{k>=0, 1+1/p^k}=2.2244691382741012... (for p=10 see constant A132325).
a(n)>n^((1+log_p(n))/2)=p^A000217(log_p(n)).
lim sup a(n)/A067080(n)=2*product{k>0, 1+1/p^k}=2.2244691382741012..., for n-->oo (for p=10 see constant A132325).
lim inf a(n)/A067080(n)=1/product{k>0, 1-1/p^k}=1/0.8900100999989990000001000..., for n-->oo (for p=10 see constant A132038).
lim inf a(n)/n^((1+log_p(n))/2)=1, for n-->oo.
lim sup a(n)/n^((1+log_p(n))/2)=2*product{k>0, 1+1/p^k}=2.2244691382741012..., for n-->oo (for p=10 see constant A132325).
lim inf a(n+1)/a(n)=2*product{k>0, 1+1/p^k}=2.2244691382741012... for n-->oo (for p=10 see constant A132325).

A054897 a(n) = Sum_{k>0} floor(n/8^k).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12
Offset: 0

Views

Author

Henry Bottomley, May 23 2000

Keywords

Comments

Different from the highest power of 8 dividing n!, A090617.

Examples

			a(100) = 13.
a(10^3) = 141.
a(10^4) = 1427.
a(10^5) = 14284.
a(10^6) = 142855.
a(10^7) = 1428569.
a(10^8) = 14285710.
a(10^9) = 142857138.
		

Crossrefs

Cf. A011371 and A054861 for analogs involving powers of 2 and 3.

Programs

  • Magma
    m:=8;
    function a(n) // a = A054897
      if n eq 0 then return n;
      else return a(Floor(n/m)) + Floor(n/m);
      end if;
    end function;
    [a(n): n in [0..103]]; // G. C. Greubel, Apr 28 2023
    
  • Mathematica
    Table[t=0; p=8; While[s=Floor[n/p]; t=t+s; s>0, p *= 8]; t, {n,0,100}]
  • Python
    def A054897(n): return (n-sum(int(d) for d in oct(n)[2:]))//7 # Chai Wah Wu, Jul 09 2022
    
  • SageMath
    m=8 # a = A054897
    def a(n): return 0 if (n==0) else a(n//m) + (n//m)
    [a(n) for n in range(104)] # G. C. Greubel, Apr 28 2023

Formula

a(n) = floor(n/8) + floor(n/64) + floor(n/512) + floor(n/4096) + ....
a(n) = (n - A053829(n))/7.
From Hieronymus Fischer, Aug 14 2007: (Start)
Recurrence:
a(n) = floor(n/8) + a(floor(n/8));
a(8*n) = n + a(n);
a(n*8^m) = n*(8^m-1)/7 + a(n).
a(k*8^m) = k*(8^m-1)/7, for 0 <= k < 8, m >= 0.
Asymptotic behavior:
a(n) = n/7 + O(log(n)),
a(n+1) - a(n) = O(log(n)); this follows from the inequalities below.
a(n) <= (n-1)/7; equality holds for powers of 8.
a(n) >= (n-7)/7 - floor(log_8(n)); equality holds for n=8^m-1, m>0.
lim inf (n/7 - a(n)) = 1/7, for n -> oo.
lim sup (n/7 - log_8(n) - a(n)) = 0, for n -> oo.
lim sup (a(n+1) - a(n) - log_8(n)) = 0, for n -> oo.
G.f.: g(x) = ( Sum_{k>0} x^(8^k)/(1-x^(8^k)) )/(1-x). (End)
Partial sums of A244413. - R. J. Mathar, Jul 08 2021

Extensions

Examples added by Hieronymus Fischer, Jun 06 2012

A054898 a(n) = Sum_{k>0} floor(n/9^k).

Original entry on oeis.org

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

Views

Author

Henry Bottomley, May 23 2000

Keywords

Comments

Different from the highest power of 9 dividing n!, A090618.

Examples

			a(100)=12.
a(10^3)=124.
a(10^4)=1248.
a(10^5)=12498.
a(10^6)=124996.
a(10^7)=1249997.
a(10^8)=12499996.
a(10^9)=124999997.
		

Crossrefs

Cf. A011371 and A054861 for analogs involving powers of 2 and 3.

Programs

  • Mathematica
    Table[t = 0; p = 9; While[s = Floor[n/p]; t = t + s; s > 0, p *= 9]; t, {n, 0, 100} ]
    Table[Sum[Floor[n/9^k],{k,n}],{n,0,100}] (* Harvey P. Dale, Jul 10 2024 *)

Formula

a(n) = floor(n/9) + floor(n/81) + floor(n/729) + floor(n/6561) + ....
a(n) = (n-A053830(n))/8.
From Hieronymus Fischer, Aug 14 2007: (Start)
Recurrence:
a(n) = floor(n/9) + a(floor(n/9));
a(9*n) = n + a(n);
a(n*9^m) = n*(9^m-1)/8 + a(n).
a(k*9^m) = k*(9^m-1)/8, for 0<=k<9, m>=0.
Asymptotic behavior:
a(n) = n/8 + O(log(n)),
a(n+1) - a(n) = O(log(n)); this follows from the inequalities below.
a(n) <= (n-1)/8; equality holds for powers of 9.
a(n) >= (n-8)/8 - floor(log_9(n)); equality holds for n=9^m-1, m>0.
lim inf (n/8 - a(n)) =1/8, for n-->oo.
lim sup (n/8 - log_9(n) - a(n)) = 0, for n-->oo.
lim sup (a(n+1) - a(n) - log_9(n)) = 0, for n-->oo.
G.f.: g(x) = sum{k>0, x^(9^k)/(1-x^(9^k))}/(1-x). (End)

Extensions

Examples added by Hieronymus Fischer, Jun 06 2012

A132028 Product{0<=k<=floor(log_4(n)), floor(n/4^k)}, n>=1.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 16, 18, 20, 22, 36, 39, 42, 45, 64, 68, 72, 76, 100, 105, 110, 115, 144, 150, 156, 162, 196, 203, 210, 217, 512, 528, 544, 560, 648, 666, 684, 702, 800, 820, 840, 860, 968, 990, 1012, 1034, 1728, 1764, 1800, 1836, 2028, 2067, 2106, 2145, 2352
Offset: 1

Views

Author

Hieronymus Fischer, Aug 20 2007

Keywords

Comments

If n is written in base-4 as n=d(m)d(m-1)d(m-2)...d(2)d(1)d(0) (where d(k) is the digit at position k) then a(n) is also the product d(m)d(m-1)d(m-2)...d(2)d(1)d(0)*d(m)d(m-1)d(m-2)...d(2)d(1)*d(m)d(m-1)d(m-2)...d(2)*...*d(m)d(m-1)d(m-2)*d(m)d(m-1)*d(m).

Examples

			a(26)=floor(26/4^0)*floor(26/4^1)*floor(26/4^2)=26*6*1=156; a(34)=544 since 34=202(base-4) and so
a(34)=202*20*2(base-4)=34*8*2=544.
		

Crossrefs

For formulas regarding a general parameter p (i.e. terms floor(n/p^k)) see A132264.
For the product of terms floor(n/p^k) for p=2 to p=12 see A098844(p=2), A132027(p=3)-A132033(p=9), A067080(p=10), A132263(p=11), A132264(p=12).
For the products of terms 1+floor(n/p^k) see A132269-A132272, A132327, A132328.

Formula

Recurrence: a(n)=n*a(floor(n/4)); a(n*4^m)=n^m*4^(m(m+1)/2)*a(n).
a(k*4^m)=k^(m+1)*4^(m(m+1)/2), for 0
Asymptotic behavior: a(n)=O(n^((1+log_4(n))/2)); this follows from the inequalities below.
a(n)<=b(n), where b(n)=n^(1+floor(log_4(n)))/4^((1+floor(log_4(n)))*floor(log_4(n))/2); equality holds for n=k*4^m, 0=0. b(n) can also be written n^(1+floor(log_4(n)))/4^A000217(floor(log_4(n))).
Also: a(n)<=2^(1/4)*n^((1+log_4(n))/2)=1.189207...*4^A000217(log_4(n)), equality holds for n=2*4^m, m>=0.
a(n)>c*b(n), where c=0.4194224417951075977... (see constant A132020).
Also: a(n)>c*2^(1/4)*n^((1+log_4(n))/2)=0.498780...*4^A000217(log_4(n)).
lim inf a(n)/b(n)=0.4194224417951075977..., for n-->oo.
lim sup a(n)/b(n)=1, for n-->oo.
lim inf a(n)/n^((1+log_4(n))/2)=0.4194224417951075977...*2^(1/4), for n-->oo.
lim sup a(n)/n^((1+log_4(n))/2)=2^(1/4), for n-->oo.
lim inf a(n)/a(n+1)=0.4194224417951075977... for n-->oo (see constant A132020).

A132325 Decimal expansion of Product_{k>=0} (1+1/10^k).

Original entry on oeis.org

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

Author

Hieronymus Fischer, Aug 20 2007

Keywords

Comments

Twice the constant A132326.

Examples

			2.22446913827410126425215613418881160749501...
		

Programs

  • Mathematica
    digits = 105; NProduct[1+1/10^k, {k, 1, Infinity}, NProductFactors -> 100, WorkingPrecision -> digits+3] // N[#, digits+3]& // RealDigits[#, 10, digits]& // First (* Jean-François Alcover, Feb 18 2014 *)
    2*N[QPochhammer[-1/10,1/10]] (* G. C. Greubel, Dec 02 2015 *)
  • PARI
    prodinf(x=0, 1+(1/10)^x) \\ Altug Alkan, Dec 03 2015

Formula

Equals lim sup_{n->oo} Product_{0<=k<=floor(log_10(n))} (1+1/floor(n/10^k)).
Equals lim sup_{n->oo} A132271(n)/n^((1+log_10(n))/2).
Equals lim sup_{n->oo} A132272(n)/n^((log_10(n)-1)/2).
Equals 2*exp(Sum_{n>0} 10^(-n)*Sum_{k|n} -(-1)^k/k) = 2*exp(Sum_{n>0} A000593(n)/(n*10^n)).
Equals lim sup_{n->oo} A132271(n+1)/A132271(n).
Equals 2*(-1/10; 1/10){infinity}, where (a;q){infinity} is the q-Pochhammer symbol. - G. C. Greubel, Dec 02 2015
Equals sqrt(2) * exp(log(10)/24 + Pi^2/(12*log(10))) * Product_{k>=1} (1 - exp(-2*(2*k-1)*Pi^2/log(10))) (McIntosh, 1995). - Amiram Eldar, May 20 2023

A132022 Decimal expansion of Product_{k>=0} (1 - 1/(2*6^k)).

Original entry on oeis.org

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

Author

Hieronymus Fischer, Aug 14 2007

Keywords

Examples

			0.45071262522603913...
		

Programs

  • Mathematica
    digits = 103; NProduct[1-1/(2*6^k), {k, 0, Infinity}, NProductFactors -> 200, WorkingPrecision -> digits+5] // N[#, digits+5]& // RealDigits[#, 10, digits]& // First (* Jean-François Alcover, Feb 18 2014 *)
    (1/2)*N[QPochhammer[1/12, 1/6], 200] (* G. C. Greubel, Dec 20 2015 *)
  • PARI
    prodinf(x=0, 1-1/(2*6^x)) \\ Altug Alkan, Dec 20 2015

Formula

Equals lim inf_{n->oo} Product_{k=0..floor(log_6(n))} floor(n/6^k)*6^k/n.
Equals lim inf_{n->oo} A132030(n)/n^(1+floor(log_6(n)))*6^(1/2*(1+floor(log_6(n)))*floor(log_6(n))).
Equals lim inf_{n->oo} A132030(n)/n^(1+floor(log_6(n)))*6^A000217(floor(log_6(n))).
Equals (1/2)*exp(-Sum_{n>0} 6^(-n)*Sum{k|n} 1/(k*2^k)).
Equals lim inf_{n->oo} A132030(n)/A132030(n+1).
Equals (1/2)*(1/12; 1/6){infinity}, where (a;q){infinity} is the q-Pochhammer symbol. - G. C. Greubel, Dec 20 2015
Equals Product_{n>=1} (1 - 1/A167747(n)). - Amiram Eldar, May 09 2023

A132024 Decimal expansion of Product_{k>=0} (1-1/(2*8^k)).

Original entry on oeis.org

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

Author

Hieronymus Fischer, Aug 14 2007

Keywords

Examples

			0.46456888368647639098...
		

Programs

  • Mathematica
    RealDigits[QPochhammer[1/2,1/8],10,120][[1]] (* Harvey P. Dale, May 23 2011 *)
  • PARI
    prodinf(k=0, 1 - 1/(2*8^k)) \\ Amiram Eldar, May 09 2023

Formula

Equals lim inf_{n->oo} Product_{k=0..floor(log_8(n))} floor(n/8^k)*8^k/n.
Equals lim inf_{n->oo} A132032(n)/n^(1+floor(log_8(n)))*8^(1/2*(1+floor(log_8(n)))*floor(log_8(n))).
Equals lim inf_{n->oo} A132032(n)/n^(1+floor(log_8(n)))*8^A000217(floor(log_8(n))).
Equals (1/2)*exp(-Sum_{n>0} 8^(-n)*Sum_{k|n} 1/(k*2^k)).
Equals lim inf_{n->oo} A132032(n)/A132032(n+1).
Equals Product_{n>=0} (1 - 1/A013730(n)). - Amiram Eldar, May 09 2023

Extensions

Name corrected by Amiram Eldar, May 09 2023

A132029 Product{0<=k<=floor(log_5(n)), floor(n/5^k)}, n>=1.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 20, 22, 24, 26, 28, 45, 48, 51, 54, 57, 80, 84, 88, 92, 96, 125, 130, 135, 140, 145, 180, 186, 192, 198, 204, 245, 252, 259, 266, 273, 320, 328, 336, 344, 352, 405, 414, 423, 432, 441, 1000, 1020, 1040, 1060, 1080, 1210, 1232, 1254, 1276
Offset: 1

Author

Hieronymus Fischer, Aug 20 2007

Keywords

Comments

If n is written in base-5 as n=d(m)d(m-1)d(m-2)...d(2)d(1)d(0) (where d(k) is the digit at position k) then a(n) is also the product d(m)d(m-1)d(m-2)...d(2)d(1)d(0)*d(m)d(m-1)d(m-2)...d(2)d(1)*d(m)d(m-1)d(m-2)...d(2)*...*d(m)d(m-1)d(m-2)*d(m)d(m-1)*d(m).

Examples

			a(26)=floor(26/5^0)*floor(26/5^1)*floor(26/5^2)=26*5*1=130; a(34)=204 since 34=114(base-5) and so a(34)=114*11*1(base-5)=34*6*1=204.
		

Crossrefs

For formulas regarding a general parameter p (i.e. terms floor(n/p^k)) see A132264.
For the product of terms floor(n/p^k) for p=2 to p=12 see A098844(p=2), A132027(p=3)-A132033(p=9), A067080(p=10), A132263(p=11), A132264(p=12).
For the products of terms 1+floor(n/p^k) see A132269-A132272, A132327, A132328.

Programs

  • Mathematica
    Table[Product[Floor[n/5^k],{k,0,Floor[Log[5,n]]}],{n,60}] (* Harvey P. Dale, Oct 16 2019 *)

Formula

Recurrence: a(n)=n*a(floor(n/5)); a(n*5^m)=n^m*5^(m(m+1)/2)*a(n).
a(k*5^m)=k^(m+1)*5^(m(m+1)/2), for 0
Asymptotic behavior: a(n)=O(n^((1+log_5(n))/2)); this follows from the inequalities below.
a(n)<=b(n), where b(n)=n^(1+floor(log_5(n)))/5^((1+floor(log_5(n)))*floor(log_5(n))/2); equality holds for n=k*5^m, 0=0. b(n) can also be written n^(1+floor(log_5(n)))/5^A000217(floor(log_5(n))).
Also: a(n)<=2^((1-log_5(2))/2)*n^((1+log_5(n))/2)=1.2181246...*5^A000217(log_5(n)), equality holds for n=2*5^m, m>=0.
a(n)>c*b(n), where c=0.438796837203638531... (see constant A132021).
Also: a(n)>c*(sqrt(2)/2^log_5(sqrt(2)))*n^((1+log_5(n))/2)=0.534509224...*5^A000217(log_5(n)).
lim inf a(n)/b(n)=0.438796837203638531..., for n-->oo.
lim sup a(n)/b(n)=1, for n-->oo.
lim inf a(n)/n^((1+log_5(n))/2)=0.438796837203638531...*sqrt(2)/2^log_5(sqrt(2)), for n-->oo.
lim sup a(n)/n^((1+log_5(n))/2)=sqrt(2)/2^log_5(sqrt(2))=1.2181246..., for n-->oo.
lim inf a(n)/a(n+1)=0.438796837203638531... for n-->oo (see constant A132021).
Previous Showing 31-40 of 49 results. Next