[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A347342 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

newer changes | Showing entries 11-15
a(n) = prime(n) mod floor(prime(n) / n).
(history; published version)
#5 by Simon Strandgaard at Fri Aug 27 12:00:00 EDT 2021
LINKS

Simon Strandgaard, <a href="/A347342/a347342.png">TITLE FOR LINKPlot of 1000 terms</a>

#4 by Simon Strandgaard at Fri Aug 27 11:59:32 EDT 2021
LINKS

Simon Strandgaard, <a href="/A347342/a347342.png">TITLE FOR LINK</a>

#3 by Simon Strandgaard at Fri Aug 27 11:56:51 EDT 2021
PROG

(PARI) a(n) = prime(n) % floor(prime(n) / n); (Ruby) require 'prime'

(Ruby) require 'prime'

#2 by Simon Strandgaard at Fri Aug 27 11:56:26 EDT 2021
NAME

allocated for Simon Strandgaard

a(n) = prime(n) mod floor(prime(n) / n).

DATA

0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 2, 3, 3, 1, 3, 1, 3, 1, 3, 3, 1, 3, 1, 3, 1, 1, 3, 3, 3, 3, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 1, 3, 1, 3, 3, 1, 1, 3, 1, 2, 1, 1, 3, 2, 3, 4, 3, 4, 2, 1, 4, 4, 1, 1, 3, 4, 3

OFFSET

1,13

FORMULA

a(n) = A000040(n) mod A038605(n).

EXAMPLE

a(1) = 2 mod floor( 2 / 1) = 2 mod 2 = 0,

a(2) = 3 mod floor( 3 / 2) = 3 mod 1 = 0,

a(3) = 5 mod floor( 5 / 3) = 5 mod 1 = 0,

a(4) = 7 mod floor( 7 / 4) = 7 mod 1 = 0,

a(5) = 11 mod floor(11 / 5) = 11 mod 2 = 1.

PROG

(PARI) a(n) = prime(n) % floor(prime(n) / n); (Ruby) require 'prime'

values = []

Prime.first(30).each_with_index do |prime, i|

values << prime % (prime/(i+1))

end

p values

CROSSREFS
KEYWORD

allocated

nonn

AUTHOR

Simon Strandgaard, Aug 27 2021

STATUS

approved

editing

#1 by Simon Strandgaard at Fri Aug 27 11:56:26 EDT 2021
NAME

allocated for Simon Strandgaard

KEYWORD

allocated

STATUS

approved