MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayIf a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successive square after had double the amount of grains as the square before. How many grains of wheat would be on the chessboard at the finish?

Assume the chess board is n by n squares.

51 correct solutions
88 incorrect solutions

Last solution submitted on Nov 02, 2014

1 Comment

Grzegorz Knor
on 10 Sep 2014

Sorry for cheating, I didn't notice that there is string 'NaN' in test suite.

6 Comments