login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A084686 Take n-th prime p(n), rewrite it with digits in decreasing order to get b(n), then a(n)=(b(n)-p(n))/9. 1
0, 0, 0, 0, 0, 2, 6, 8, 1, 7, 0, 4, 0, 0, 3, 0, 4, 0, 1, 0, 0, 2, 0, 1, 0, 1, 23, 67, 89, 22, 66, 20, 66, 88, 88, 40, 66, 52, 66, 62, 88, 70, 80, 82, 86, 88, 0, 11, 55, 77, 11, 77, 20, 30, 55, 41, 77, 50, 55, 60, 61, 71, 47, 0, 2, 46, 0, 44, 44, 66, 20, 66, 44, 40, 66, 50, 66, 64, 1, 59, 58 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

FORMULA

a(n) = A283001(A000040(n)). - Robert Israel, Nov 26 2019

EXAMPLE

a(7)=6 because p(7)=17, b(n)=71 and (71-17)/9=6.

MAPLE

f:= proc(n) local p, L, i;

  p:= ithprime(n);

  L:= sort(convert(p, base, 10));

  (add(10^(i-1)*L[i], i=1..nops(L))-p)/9

end proc:

map(f, [$1..100]); # Robert Israel, Nov 26 2019

MATHEMATICA

Table[ -Prime[n]-FromDigits[Sort[ -IntegerDigits[Prime[n]]]], {n, 1, 100}]

CROSSREFS

Cf. A040164, A085307.

Sequence in context: A327279 A021377 A261875 * A040164 A086353 A019786

Adjacent sequences:  A084683 A084684 A084685 * A084687 A084688 A084689

KEYWORD

easy,nonn,base,look

AUTHOR

Zak Seidov, Jun 30 2003

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 10:34 EDT 2020. Contains 337289 sequences. (Running on oeis4.)