OFFSET
0,2
COMMENTS
Conjectured inverse of A257905.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
MATHEMATICA
{a, f} = {{1}, {0}}; Do[tmp = {#, # - Last[a]} &[Min[Complement[#, Intersection[a, #]]&[Last[a] + Complement[#, Intersection[f, #]] &[Range[2 - Last[a], -1]]]]];
If[! IntegerQ[tmp[[1]]], tmp = {Last[a] + #, #} &[NestWhile[# + 1 &, 1, ! (! MemberQ[f, #] && ! MemberQ[a, Last[a] - #]) &]]];
AppendTo[a, tmp[[1]]]; AppendTo[f, tmp[[2]]], {1000}]; a;
Flatten[Table[Position[a, n], {n, 1, 150}]]) (* Peter J. C. Moses, May 14 2015 *)
PROG
(Haskell)
import Data.List (elemIndex); import Data.Maybe (fromJust)
a256283 = (+ 1) . fromJust . (`elemIndex` a257905_list)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 03 2015
STATUS
approved