If n is odd, then d1、d2、d3、d4 are all odd. Hence n=d12+d22+d32+d42≡1+1+1+1≡0(mod4). Contradiction.
If 4∣n, then d1=1,d2=2. By di2≡0 or 1(mod4), we have n≡1+0+d32+d42=0(mod4). Also a contradiction.
Therefore, n=2(2n1−1),n1 is some positive integer, and the tuple (d1,d2,d3,d4)=(1,2,p,q) or (1,2,p,2p), where p,q are odd primes.
In the first case, n=12+22+p2+q2≡3(mod4). Contradiction.
Thus, it can only be n=12+22+p2+(2p)2=5(1+p2). Hence 51n.
If d3=3, then d4=5, which will return to the first case, so it can only be d3=p=5, then n=12+22+52+102=130.
It is easy to verify that the 4 smallest consecutive positive divisors of 130 are 1,2,5,10, satisfying the condition.
Therefore, n=130.