Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A140959
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A140959 Number of distinct-digit primes in base n. +0
1
0, 1, 6, 6, 31, 130, 632, 4418, 34401, 283086 (list; graph; listen)
OFFSET

1,3

EXAMPLE

a(1) = 0; a(2) = 1 since only the prime 2 in base 2 has distinct integers, 10_2;

a(3) = 6 since the primes {2, 3, 5, 7, 11 & 19} in base 3 have distinct integers, {2_3, 10_3, 12_3, 21_3, 102_3, 201_3}; etc.

a(10) = 283086 because it is the partial sum of A073532.

MATHEMATICA

f[b_] := Block[{c = 0, k = 1, lmt = b^b}, While[p = Prime@ k; p < lmt, k++; If[ Union[ Length /@ Split@ Sort@ IntegerDigits[p, b]] == {1}, c++ ]]; c]; Array[f, 6]

CROSSREFS

Cf. A073532.

Adjacent sequences: A140956 A140957 A140958 this_sequence A140960 A140961 A140962

Sequence in context: A147799 A071021 A074002 this_sequence A015699 A111437 A056464

KEYWORD

base,hard,nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 25 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 January 7 11:41 EST 2009. Contains 152824 sequences.


AT&T Labs Research