OFFSET
1,2
COMMENTS
A one-digit number a is in this sequence if and only if a = 0.
A two-digit number ab is in this sequence if and only if a = b.
A three-digit number abc is in this sequence if and only if a = b = c.
A four-digit number abcd is in this sequence if and only if a + c = b + d or (a = c and b = d)
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Circulant Matrix
Wikipedia, Circulant matrix
EXAMPLE
1452 is a term because the value of the following determinant is 0:
| 1 4 5 2 |
| 4 5 2 1 |
| 5 2 1 4 |
| 2 1 4 5 |
MATHEMATICA
A299792Q[k_] := k == 0 || Det[NestList[RotateLeft, IntegerDigits[k], IntegerLength[k]-1]] == 0; Select[Range[0, 2000], A299792Q] (* Paolo Xausa, Mar 11 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jianing Song, Jan 21 2019
STATUS
approved