login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A257475
Position of second and last occurrence of n in A256918.
5
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,1
COMMENTS
GCD(A257218(a(n)),A257218(a(n)-1)) = n;
a(n) > A257120(n); a(n) = A257120 + A257478(n).
LINKS
Hiroaki Yamanouchi, Table of n, a(n) for n = 1..72
EXAMPLE
Cf. A257478.
PROG
(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
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 25 2015
EXTENSIONS
a(38)-a(57) from Hiroaki Yamanouchi, May 03 2015
STATUS
approved