A257475 Position of second and last occurrence of n in A256918.
2, 6, 9, 12, 8, 14, 30, 17, 20, 28, 123, 23, 201, 32, 25, 39, 300, 46, 825, 43, 34, 125, 946, 51, 27, 203, 47, 52, 3094, 56, 7060, 62, 127, 302, 54, 71, 13528, 827, 205, 61, 28659, 79, 40811, 132, 58, 948, 46658, 65, 81, 99, 304, 210, 57450, 69, 134, 77, 829
Offset: 1
Keywords
Examples
Cf. A257478.
Links
- Hiroaki Yamanouchi, Table of n, a(n) for n = 1..72
Programs
-
Haskell
a257475 n = f 1 a256918_list where f i (u:us) = (if u == n then g else f) (i + 1) us g j (v:vs) = if v == n then j else g (j + 1) vs
Extensions
a(38)-a(57) from Hiroaki Yamanouchi, May 03 2015
Comments