src/main/scala/grains.scala

1
2
3
4
5
6
object Grains {
  val NumberOfSquares = 64

  def square(n: Int) = BigInt(2).pow(n-1)
  def total = BigInt(2).pow(NumberOfSquares) - 1
}

Comments


You're not logged in right now. Please login via GitHub to comment