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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A166745 a(n) = n-th prime written as a sum of ordered digits 1,2,4,8 with a minimal number of digits. 1
2, 12, 14, 124, 128, 148, 188, 1288, 12488, 14888, 124888, 148888, 188888, 1288888, 12488888, 14888888, 128888888, 148888888, 1288888888, 12488888888, 1888888888, 124888888888, 128888888888, 188888888888, 1888888888888 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..25.

MAPLE

A166745 := proc(n) local p, d; p := ithprime(n) ; d := [] ; for e from 3 to 0 by -1 do r := floor(p/2^e) ; if r > 0 then d := [op(d), seq(2^e, i=1..r)] ; p := p mod (2^e) ; fi; end do ; add(op(p, d)*10^(p-1), p=1..nops(d)) ; end: seq(A166745(n), n=1..80) ; [From R. J. Mathar, Oct 24 2009]

CROSSREFS

Sequence in context: A022368 A076484 A108969 * A200183 A118516 A077103

Adjacent sequences:  A166742 A166743 A166744 * A166746 A166747 A166748

KEYWORD

nonn,base

AUTHOR

Paul Curtz, Oct 21 2009

EXTENSIONS

Edited (but not checked) by N. J. A. Sloane, Oct 22 2009

More terms from R. J. Mathar, Oct 24 2009

STATUS

approved

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

Content is available under The OEIS End-User License Agreement .

Last modified June 19 06:19 EDT 2013. Contains 226399 sequences.