STATUS
proposed
approved
proposed
approved
editing
proposed
(Python:)
.... n = n+1
.... y1, y0, i = 0, yf, 1
.... while y0%n != 0:
........ y1, y0, i = y0, x*y0-y1, i+1
.... print(n, i)
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
b[n_] := b[n] = Switch[n, 0, 0, 1, 4, _, 18 b[n - 1] - b[n - 2]];
a[n_] := For[k = 1, True, k++, If[Mod[b[k], n] == 0, Return[k]]];
a /@ Range[100] (* Jean-François Alcover, Nov 16 2019 *)
approved
editing
proposed
approved
editing
proposed