i have following dynamic problem we should have construct following triangle
1
2 3
4 6 9
8 12 18 27
16 24 36 54 81
32 48 72 108 162 243
64 96 144 216 324 486 729
please can anybody help me to write algorithm for solve this problem?