Let p=2017. Given a positive integer n, an n×n matrix A is formed with each element aij randomly selected, with equal probability, from {0,1,…,p−1}. Let qn be probability that detA≡1(modp). Let q=n→∞limqn. If d1,d2,d3,… are the digits after the decimal point in the base p expansion of q, then compute the remainder when k=1∑p2dk is divided by 109.Proposed by Ashwin Sah