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.

A274626 a(n) = Product_{i=0..2} (2^floor((n+i)/3)-1).

This page as a plain text file.
%I A274626 #32 Jun 29 2025 12:01:09
%S A274626 0,0,0,1,3,9,27,63,147,343,735,1575,3375,6975,14415,29791,60543,
%T A274626 123039,250047,504063,1016127,2048383,4112895,8258175,16581375,
%U A274626 33227775,66585855,133432831,267126783,534776319,1070599167,2142244863,4286583807,8577357823,17158905855,34326194175,68669157375
%N A274626 a(n) = Product_{i=0..2} (2^floor((n+i)/3)-1).
%C A274626 From _Tom Karzes_, Jul 05 2016: (Start)
%C A274626 This is a three-dimensional analog of the holes-in-sheet-of-paper sequence A274230.
%C A274626 In d dimensions, assuming the axes for folding are selected in a round-robin fashion, the number of times a given dimension is folded is:
%C A274626     floor((n+i)/d)
%C A274626 where i runs from 0 (for the last dimension to be folded) through d-1 (for the first dimension to be folded).
%C A274626 The corresponding number of internal dividing lines/planes/etc. is (2^floor((n+i)/d)-1).  The number of internal d-way intersections, which corresponds to the number of holes, is:
%C A274626     Product_{i=0..d-1}(2^floor((n+i)/d)-1)
%C A274626 where d is the number of dimensions and n is the total number of folds.
%C A274626 Note that the first several nonzero entries in these sequences are the powers of 3. Specifically, in d dimensions, the first d entries are 0, followed by the first (d+1) powers of 3.
%C A274626 It's not hard to see why this is so. The first nonzero entry occurs at d folds, and the value is 1.  This is when you've folded once along each dimension.
%C A274626 After that, the next d folds each divide 2 old partitions into 4 new ones, i.e., they change the internal folds from 1 to 3. So for the next d entries you just multiply the previous entry by 3 (or more generally, by 3/1).
%C A274626 After that you multiply by 7/3 for the next d entries, then 15/7, then 31/15, etc. Each time you're just replacing one of the old factors with a new one, where each factor is one less than a power of two.
%C A274626 Here's an alternative formulation that avoids the iterated product.
%C A274626 For a given number of folds, there are only two factors, each raised to some exponent (with the sum of the exponents being the dimension d):
%C A274626     v1 = 2^(n/d)-1
%C A274626     v2 = 2^(n/d+1)-1
%C A274626     p1 = d-mod(n,d)
%C A274626     p2 = mod(n,d)
%C A274626     holes = (v1^p1)*(v2^p2)
%C A274626 This flattens to:
%C A274626     ((2^(n/d)-1)^(d-mod(n,d))) * ((2^(n/d+1)-1)^(mod(n,d)))
%C A274626 (End)
%D A274626 Tom Karzes, Posting to Math Fun Mailing List, Jul 05 2016.
%H A274626 Harvey P. Dale, <a href="/A274626/b274626.txt">Table of n, a(n) for n = 0..1000</a>
%F A274626 Empirical g.f.: x^3*(1+2*x^2) / ((1-x)*(1-2*x)*(1-2*x^3)*(1-4*x^3)). - _Colin Barker_, Jul 06 2016
%p A274626 f:=(n,d) ->  mul(2^floor((n+i)/d)-1, i = 0 .. d-1);
%p A274626 [seq(f(n,3),n=0..40)];
%t A274626 Table[Product[(2^Floor[(n+i)/3]-1),{i,0,2}],{n,0,40}] (* _Harvey P. Dale_, Jun 29 2025 *)
%o A274626 (PARI) a(n) = prod(i=0, 2, 2^floor((n+i)/3)-1) \\ _Colin Barker_, Jul 06 2016
%Y A274626 Cf. A274230, A274627.
%K A274626 nonn
%O A274626 0,5
%A A274626 _N. J. A. Sloane_, Jul 05 2016