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.

52 correct solutions
89 incorrect solutions

Last solution submitted on Jan 19, 2015

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