OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..500
MATHEMATICA
b = 2; s = {{1}}; Do[NestWhile[# + 1 &, 0, ! (PrimeQ[FromDigits[tmp = Join[Last[s], (nn = #; IntegerDigits[nn - Sum[b^n, {n, l = NestWhile[# + 1 &, 1, ! (nn - (Sum[b^n, {n, #}]) < 0) &] - 1}], b, l + 1])], b]]) &]; AppendTo[s, tmp], {30}]; Map[FromDigits, s]; Map[FromDigits, s] (* A261200 *)
Map[FromDigits[#, b] &, s] (* A261201 *)
(* Peter J. C. Moses, Aug 06 2015 *)
CROSSREFS
Cf. A261269.
KEYWORD
nonn,easy,base
AUTHOR
Clark Kimberling, Sep 17 2015
STATUS
approved