cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A107014 Belgian-6 numbers.

This page as a plain text file.
%I A107014 #15 May 08 2015 16:52:02
%S A107014 6,10,11,12,20,21,22,23,24,28,30,33,34,36,41,42,46,49,58,60,61,62,66,
%T A107014 68,73,83,92,96,100,101,102,103,110,111,112,113,114,118,120,121,122,
%U A107014 123,126,127,128,129,130,131,132,133,134,136,138,143,150,155,156
%N A107014 Belgian-6 numbers.
%H A107014 Reinhard Zumkeller, <a href="/A107014/b107014.txt">Table of n, a(n) for n = 1..10000</a>
%t A107014 belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 159, belgianQ[#, 6] &] (* _Robert G. Wilson v_, May 06 2011 *)
%o A107014 (Haskell)
%o A107014 a107014 n = a107014_list !! (n-1)
%o A107014 a107014_list = filter belge6 [6..] where
%o A107014    belge6 x = x == (head $ dropWhile (< x) $
%o A107014                     scanl (+) 6 $ cycle (map (read . return) $ show x))
%o A107014 -- _Reinhard Zumkeller_, May 08 2015
%Y A107014 See A106039 for definition and link.
%Y A107014 Belgian-k numbers, k=0..9: A106039, A106439, A106518, A106596, A106631, A106792, A107014, A107018, A107032, A107043.
%Y A107014 Cf. A257770.
%K A107014 base,easy,nonn
%O A107014 1,1
%A A107014 _Eric Angelini_, Jun 07 2005
%E A107014 Offset changed by _Reinhard Zumkeller_, May 08 2015