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.

A106792 Belgian-5 numbers.

This page as a plain text file.
%I A106792 #15 May 08 2015 16:51:29
%S A106792 5,10,11,12,13,29,38,45,50,52,53,55,61,100,101,102,110,111,114,120,
%T A106792 121,124,125,130,131,132,134,135,136,137,138,139,140,145,148,150,151,
%U A106792 160,174,175,182,186,191,195,211
%N A106792 Belgian-5 numbers.
%H A106792 Reinhard Zumkeller, <a href="/A106792/b106792.txt">Table of n, a(n) for n = 1..10000</a>
%t A106792 belgianQ[n_, k_] := If[n < k, False, Block[{id = Join[{0}, IntegerDigits@ n]}, MemberQ[ Accumulate@ id, Mod[n - k, Plus @@ id]] ]]; Select[ Range@ 211, belgianQ[#, 5] &] (* _Robert G. Wilson v_, May 06 2011 *)
%o A106792 (Haskell)
%o A106792 a106792 n = a106792_list !! (n-1)
%o A106792 a106792_list = filter belge5 [5..] where
%o A106792    belge5 x = x == (head $ dropWhile (< x) $
%o A106792                     scanl (+) 5 $ cycle ((map (read . return) . show) x))
%o A106792 -- _Reinhard Zumkeller_, May 08 2015
%Y A106792 See A106039 for definition and link.
%Y A106792 Belgian-k numbers, k=0..9: A106039, A106439, A106518, A106596, A106631, A106792, A107014, A107018, A107032, A107043.
%Y A106792 Cf. A257770.
%K A106792 base,easy,nonn
%O A106792 1,1
%A A106792 _Eric Angelini_, Jun 07 2005
%E A106792 Offset changed by _Reinhard Zumkeller_, May 08 2015