A196558 a(n) is the index of the first occurrence of n in A195061.
2, 36, 108, 284
Offset: 1
Examples
A195061(2)=1 => a(1)=2; A195061(3)=A195061(4)=...=A195061(35)=1; A195061(36) = 2 => a(2)=36; A195061(1..107) <= 2; A195061(108)=3 => a(3)=108; A195061(1..283) <= 3; A195061(284)=4 => a(4)=284.
Programs
-
Mathematica
(* Taking the function Checks[n_] in the Mathematica program for A195061, the following program gives the first four terms: *) k = 0; i = 1; a = 0; Array[ff, 4]; Do[ff[j] = 0, {j, 1, 4}]; While[(k < 4) && (a < 4), i++; a = Checks[i]; If[(a <= 4) && (ff[a] == 0), ff[a] = i;k++]]; Table[ff[m], {m, 4}]
Comments