If n is a square, a(n) is 0. Otherwise, a(n) is the smallest number k such that n is not a quadratic residue modulo k.
A139401
If n is a square, a(n) is 0. Otherwise, a(n) is the smallest number k such that n is not a quadratic residue modulo k.
Terms
- a(0) =0a(1) =3a(2) =4a(3) =0a(4) =3a(5) =4a(6) =4a(7) =3a(8) =0a(9) =4a(10) =3a(11) =5a(12) =5a(13) =3a(14) =4a(15) =0a(16) =3a(17) =4a(18) =4a(19) =3a(20) =8a(21) =4a(22) =3a(23) =7a(24) =0a(25) =3a(26) =4a(27) =5a(28) =3a(29) =4
External references
- oeis: A139401