N cube build x layers

N pics small wooden blocks (all of the same size cube). Quickly build the shape of the rule as shown in the following figure (the figure below is the scale of 5 levels), and request the maximum number of layers.

If you have integer 1000 pics small blocks, What is the max number of layers that can be stacked = x, and the number of remaining wooden block = y? you can input result suit to the format as follow: if x equal to 10 and y equal to 23 , then you prefer to input 10.23


The answer is 17.31.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Assume the sequence { a n } n = 1 \{a_n\}_{n=1}^{\infty} to be the number of cubes in each level. then, the following recurrence relation is true.

a n = a n 1 + n + 1 a_n=a_{n-1}+n+1

the corresponding generating function is

f ( x ) = 1 ( 1 x ) 3 f(x)=\frac{1}{(1-x)^3}

the generating function that has b m = i = 0 m a i b_m=\sum_{i=0}^{m}a_i as its coefficient is (we are adding the number of cubes for m m levels)

g ( x ) = f ( x ) 1 x = 1 ( 1 x ) 4 g(x)=\frac{f(x)}{1-x}=\frac{1}{(1-x)^4}

if the Taylor expansion of g ( x ) g(x) , around 0 0 , is written, one finds out that the coefficients of g ( x ) g(x) are b m = ( 3 + m ) ! m ! 3 ! = ( m + 3 3 ) b_m=\frac{(3+m)!}{m!3!}= \binom{m+3} {3} . Then we need to find the maximum m m for which

b m = ( m + 3 3 ) 1000 b_m= \binom{m+3}{3} \leq 1000

it turns out to be m = 16 m=16 , which means that we can have 17 levels. Also, ( 16 + 3 3 ) = ( 19 3 ) = 969 \binom{16+3}{3} = \binom{19}{3}=969 , so the remaining of the cubes can be calculated.

Michael Mendrin
Sep 23, 2018

1000 j = 1 17 k = 1 j k = 31 1000- \displaystyle \sum _{ j=1 }^{ 17 }{\displaystyle \sum _{ k=1 }^{ j }{ k } } =31

..so, answer is 17.31 17.31

Great move ! by the way,being trapped in the problem for several days, I guess you have solution to crack it: https://brilliant.org/weekly-problems/2017-02-20/advanced/?p=3!

丁大喵 by丁丁猫 - 2 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...