OFFSET
1,2
EXAMPLE
673 is in the sequence because L(6/673) = L(7/673) = L(3/673) = 1 where L(a/b) is the Legendre symbol of a and b, which is defined to be 1 if a is a quadratic
residue (mod b) and -1 if a is a quadratic non-residue (mod b).
MAPLE
isA177054 := proc(n) local d; for d in convert(n, base, 10) do if numtheory[quadres](d, n) <> 1 then return false; end if; end do; return true; end proc:
for n from 1 to 140 do if isA177054(n) then printf("%d, ", n) ; end if ; end do: # R. J. Mathar, Dec 12 2010
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Michel Lagneau, Dec 09 2010
STATUS
approved