cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A257475 Position of second and last occurrence of n in A256918.

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Apr 25 2015

Keywords

Comments

GCD(A257218(a(n)),A257218(a(n)-1)) = n;
a(n) > A257120(n); a(n) = A257120 + A257478(n).

Examples

			Cf. A257478.
		

Crossrefs

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