I'm puzzled you know the diagonal length.
usually I know the length of the sides then can work from there size of block and how many. You can try different sizes of block which will generate different number of blocks.
far easier than playing with Pythagarus