login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A052219 Numbers whose sum of digits is 5. 32
5, 14, 23, 32, 41, 50, 104, 113, 122, 131, 140, 203, 212, 221, 230, 302, 311, 320, 401, 410, 500, 1004, 1013, 1022, 1031, 1040, 1103, 1112, 1121, 1130, 1202, 1211, 1220, 1301, 1310, 1400, 2003, 2012, 2021, 2030, 2102, 2111, 2120, 2201, 2210, 2300, 3002 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

A007953(a(n)) = 5; number of repdigits = #{5,11111} = A242627(5) = 2. - Reinhard Zumkeller, Jul 17 2014

LINKS

Vincenzo Librandi and T. D. Noe, Table of n, a(n) for n = 1..1287 (first 462 terms from Vincenzo Librandi)

MATHEMATICA

Select[Range[10^4], Total[IntegerDigits[#]] == 5 &] (* Vincenzo Librandi, Mar 07 2013 *)

Union[Flatten[Table[FromDigits /@ Permutations[PadRight[s, 9]], {s, IntegerPartitions[5]}]]] (* T. D. Noe, Mar 08 2013 *)

PROG

(MAGMA) [n: n in [1..3010] | &+Intseq(n) eq 5 ]; // Vincenzo Librandi, Mar 07 2013

(Haskell)

a052219 n = a052219_list !! (n-1)

a052219_list = filter ((== 5) . a007953) [0..]

-- Reinhard Zumkeller, Jul 17 2014

(PARI) isok(n) = sumdigits(n) == 5; \\ Michel Marcus, Dec 28 2015

CROSSREFS

Cf. A007953.

Cf. A011557 (1), A052216 (2), A052217 (3), A052218 (4), A052220 (6), A052221 (7), A052222 (8), A052223 (9), A052224 (10), A166311 (11), A235151 (12), A143164 (13), A235225(14), A235226 (15), A235227 (16), A166370 (17), A235228 (18), A166459 (19), A235229 (20).

Cf. A242614, A242627.

Sequence in context: A085950 A043473 A017221 * A044057 A147825 A174263

Adjacent sequences:  A052216 A052217 A052218 * A052220 A052221 A052222

KEYWORD

nonn,base,easy

AUTHOR

Henry Bottomley, Feb 01 2000

EXTENSIONS

Offset changed from Bruno Berselli, Mar 07 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified June 23 04:07 EDT 2017. Contains 288634 sequences.