Sherlock and Square

  • + 1 comment

    return (pow(2,n+1,1000000007)+2)%1000000007

    • + 0 comments

      Python's pow() is made for this.