A102135 Iccanobirt prime indices (5 of 15): Indices of prime numbers in A102115.
4, 6, 7, 19, 46, 613, 1146, 1500, 1982, 2590, 7278, 13714, 15929
Offset: 1
Programs
-
Mathematica
a[n_] := a[n] = IntegerReverse[a[n - 1]] + a[n - 2] + IntegerReverse[a[n - 3]]; a[0] = 0; a[1] = 0; a[2] = 1; Select[Range[0, 5000], PrimeQ[a[#]] &] (* Robert Price, Apr 10 2020 *) nxt[{a_,b_,c_}]:={b,c,Total[IntegerReverse[{a,c}]]+b};Flatten[Position[NestList[nxt,{0,0,1},2600][[;;,1]],?PrimeQ]]-1 (* The program generates the first 10 terms of the sequence. *) (* _Harvey P. Dale, Oct 23 2024 *)
Extensions
a(11)-a(13) from Robert Price, Nov 08 2018
Comments