OFFSET
1,2
COMMENTS
LINKS
V.J. Pohjola, Line plot for n=1..7
V.J. Pohjola, Line plot for n=1..85
EXAMPLE
The first 7 terms of A293699 are (3, 19, 3, 19, 3, 19, 3) which is a palindromic sequence, so 7 is a term.
The first 8 terms of A293699 are (3, 19, 3, 19, 3, 19, 3, 3) which is not a palindromic sequence, so 8 is not a term.
The first 9 terms of A293699 are (3, 19, 3, 19, 3, 19, 3, 3, 16) which is not a palindromic sequence, so 9 is not a term.
The first 25 terms of A293699 are (3, 19, 3, 19, 3, 19, 3, 3, 16, 3, 3, 16, 3, 3, 16, 3, 3, 16, 3, 3, 19, 3, 19, 3, 19) which is not a palindromic sequence, so 25 is not a term.
The first 26 terms of A293699 are (3, 19, 3, 19, 3, 19, 3, 3, 16, 3, 3, 16, 3, 3, 16, 3, 3, 16, 3, 3, 19, 3, 19, 3, 19, 3) which is a palindromic sequence, so 26 is a term.
MATHEMATICA
rootsn7 = Flatten[Position[Table[Floor[Tan[-n]], {n, 1, 10^7}], 1]];
difn7 = Differences[rootsn7];
ny = {}; Do[
If[Table[difn7[[i]], {i, 1, n}] == Reverse[Table[difn7[[i]], {i, 1, n}]],
AppendTo[ny, n]], {n, 1, Length[difn7]}]
ny
CROSSREFS
KEYWORD
nonn
AUTHOR
V.J. Pohjola, Nov 11 2017
STATUS
approved