login
A260820
Nonnegative integers n such that n^3-3 is divisible by n-3.
0
0, 1, 2, 4, 5, 6, 7, 9, 11, 15, 27
OFFSET
1,3
COMMENTS
Negative integers such that n^3-3 is divisible by n-3 are -1, -3, -5, -9 and -21.
REFERENCES
W. Sierpiński, 250 Problems in Elementary Number Theory. New York: American Elsevier, Warsaw, 1970, Problem 2 page 1.
EXAMPLE
(7^3-3)/(7-3) = 85 so 7 is a term of this sequence.
(8^3-3)/(8-3) = 509/5 so 8 is not a term.
MATHEMATICA
Select[Delete[Range@ 120, 3], Mod[#^3 - 3, # - 3] == 0 &] (* Michael De Vlieger, Aug 04 2015 *)
PROG
(PARI) lista(nn) = for (n=0, nn, if ((n!=3) && (Mod(n, n-3)^3 == Mod(3, n-3)), print1(n, ", "))); \\ Michel Marcus, Aug 04 2015
CROSSREFS
Sequence in context: A126424 A164317 A138620 * A248554 A346993 A098166
KEYWORD
fini,full,nonn
AUTHOR
Marco Ripà, Jul 31 2015
STATUS
approved