The Value of 312 is equal to
981
961
991
1001
312 can be written as 302 + (30 +31) [ (n+1)2=n2+(n)+(n+1) ]
= 900 + 30 + 31
= 961