Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A110457
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A110457 a(n) = least prime not already used such that the frequencies of the decimal digits in the first n terms are almost equal, i.e. for any two digits, their numbers of occurrences differ by no more than 1. +0
1
2, 3, 5, 7, 19, 40867, 13, 29, 405683, 17, 59, 206483, 41, 67, 89, 2053, 47, 61, 509, 281, 23, 79, 405689, 31, 257, 46807, 43, 109, 25867, 53, 149, 20681, 37, 269, 40583, 71, 409, 28657, 83, 241, 569, 103, 97, 2046853, 107, 659, 2843, 127, 809, 4561, 73, 829, 45061, 239, 457, 6089, 137, 2046857, 139, 2048569, 157, 263, 4801, 283, 467, 5009, 163, 479, 2851, 293, 487, 6053, 167, 859, 4021, 307, 2459, 683, 179 (list; graph; listen)
OFFSET

1,1

EXAMPLE

a(6) must end with 1, 3, 5, or 7 and all of these digits previously occurred in the sequence. So the final digit of a(6) occurs at least twice in a(1) through a(6), so every other digit must occur at least once in terms a(1) through a(6). So a(6) must include the digits 0, 4, 6 and 8, because these digits don't occur in a(1) through a(5). The smallest prime including 0, 4, 6 and 8 is 40867, so this is a(6).

a(66) = 5009 is the first term with a repeated digit. In a(1) through a(65), the digits 0, 5 and 9 occur 20 times and the other digits occur 21 times. The only primes that can be made from 0, 5 and 9 are 5, 59 and 509, all of which have already been used. 5009 is the smallest four-digit prime that includes 0, 5 and 9, because 1059, 1509, 2059, 2509, 3059, 3509, 4059 and 4509 are all composite.

CROSSREFS

Sequence in context: A158473 A048420 A048405 this_sequence A162948 A024768 A024769

Adjacent sequences: A110454 A110455 A110456 this_sequence A110458 A110459 A110460

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Aug 04 2005

EXTENSIONS

Edited. - David Wasserman (dwasserm(AT)earthlink.net), Dec 11 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 12:48 EST 2009. Contains 170310 sequences.


AT&T Labs Research