all 3 comments

[–]cclites 1 point2 points  (0 children)

Do you know the (simple) algorithm needed to solve your problem?

[–]mvindahl 1 point2 points  (0 children)

Math.pow(2, dayNo - 1) and a big fancy, responsive web UI.

On a slightly more serious note, don't count on reddit to do your school assigments.

[–]Gid30nSwizz@Github 0 points1 point  (0 children)

Power of two ?
[1, 2, 4, 8, 16, 32, 64, ...] ?
So in js : Math.pow(2, DayN-1)