OFFSET
1,1
COMMENTS
MATHEMATICA
Block[{s = TakeWhile[Import["https://oeis.org/A025487/b025487.txt", "Data"], Length@ # > 0 &][[All, -1]], t = Map[ToExpression[StringSplit[#][[1, -1]] ] &, Rest@ StringSplit[Import["https://oeis.org/A224078/b224078.txt", "Data"], "\n"]]}, Reap[Do[Which[Length@ t == 0, Break[], First[t] == s[[i]], t = Rest@ t; Sow[i]], {i, Length@ s}]][[-1, -1]]]
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Michael De Vlieger, Feb 07 2020
STATUS
approved