OFFSET
1,2
COMMENTS
A180477 is a subsequence of this sequence. - Hans Havermann, Oct 27 2015
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Éric Angelini, Essicran Numbers, SeqFan list, Oct 27 2015.
EXAMPLE
a(14)=18: 18-1-8-1-8-1-8-1-8 = -18. - Bob Selcoe, Oct 27 2015
MATHEMATICA
eQ[n_] := Block[{d = IntegerDigits@ n}, MemberQ[Accumulate@ d ~Prepend~ 0, Mod[2*n, Total@ d]]]; Select[Range@ 128, eQ] (* Giovanni Resta, Oct 27 2015 *)
PROG
(Haskell)
a263808 n = a263808_list !! (n-1)
a263808_list = filter essicran [1..] where
essicran x = last (takeWhile (>= -x) es) == -x where
es = scanl (-) x (cycle $ map (read . return) $ show x)
(PARI) is(n)=my(d=digits(n), t, S=vector(#d-1, i, t+=d[i])); t=2*n%vecsum(d); t==0 || setsearch(S, d) \\ Charles R Greathouse IV, Oct 28 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and Reinhard Zumkeller, Oct 27 2015
STATUS
approved