Hello All,(adsbygoogle = window.adsbygoogle || []).push({});

I'm programming an applet and run over a problem I can't solve (hope this is the right place to post it):

Having a 4 by 4 2d grid and 8 lineal elements: a) 1 of 4 square, b) 1 of 3 squares, c) 3 of 2 squares, and d) 3 of 1 suare:

_grid:

XXXX

XXXX

XXXX

XXXX

_elements:

a) XXXX

b) XXX

c) XX - XX - XX

d) X - X - X

How many combinations are possible? Any piece can be rotated by 90° and any combination must use all the available elements.

Any help on how to tackle the problem will be much appreciated.... thank you !!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Tetris-like combinatorial problem

**Physics Forums | Science Articles, Homework Help, Discussion**