[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 A337307 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

newer changes | Showing entries 11-15
a(1) = 1; a(n) = 1 + Product_{k=1..n-1} a(k) (mod n-1).
(history; published version)
#5 by Matt Donahoe at Sat Aug 22 16:13:18 EDT 2020
STATUS

editing

proposed

#4 by Matt Donahoe at Sat Aug 22 14:48:33 EDT 2020
NAME

a(1) = 1; a(n + 1) = 1 + productProduct_{k=1 to ..n-1} a(k) (mod n-1).

DATA

1, 1, 2, 3, 3, 4, 1, 3, 1, 1, 7, 6, 1, 12, 1, 10, 1, 12, 1, 3, 1, 1, 21, 12, 1, 6, 21, 1, 1, 15, 1, 20, 1, 31, 15, 1, 1, 32, 13, 1, 1, 18, 1, 7, 25, 1, 17, 38, 1, 1, 1, 1, 1, 26, 1, 6, 1, 1, 29, 47, 1, 42, 1, 1, 1, 1, 61, 26, 1, 25, 1, 21, 1, 64, 21, 1, 1, 29, 1, 18, 1, 1, 11, 21, 1, 1, 59, 1, 1, 39, 1, 1, 5, 1, 1, 1, 1, 32, 1, 1, 1, 42, 1, 9, 1, 1, 29, 55, 1, 44, 1, 37, 1, 105, 1, 101, 1, 1, 1, 1, 1, 1, 1, 100

COMMENTS

Note that the running product for each a(n+1) is incrementally taken computed mod n-1.

CROSSREFS

Inspired by A066910.

STATUS

proposed

editing

Discussion
Sat Aug 22
14:49
Matt Donahoe: Comments addressed.
#3 by Matt Donahoe at Sat Aug 22 07:07:15 EDT 2020
STATUS

editing

proposed

Discussion
Sat Aug 22
07:13
Joerg Arndt: program says mod n-1, name says mod n.
07:31
Michel Marcus: name, comment, and crossrefs should end with a .
07:31
Michel Marcus: data section is too big : should be around 260 chars all included
07:32
Michel Marcus: product{k=1 to n} : please see Product in https://oeis.org/wiki/Style_Sheet#Spelling_and_notation
#2 by Matt Donahoe at Sat Aug 22 07:05:31 EDT 2020
NAME

allocated for Matt Donahoea(1) = 1; a(n + 1) = 1 + product{k=1 to n} a(k) (mod n)

DATA

1, 1, 2, 3, 3, 4, 1, 3, 1, 1, 7, 6, 1, 12, 1, 10, 1, 12, 1, 3, 1, 1, 21, 12, 1, 6, 21, 1, 1, 15, 1, 20, 1, 31, 15, 1, 1, 32, 13, 1, 1, 18, 1, 7, 25, 1, 17, 38, 1, 1, 1, 1, 1, 26, 1, 6, 1, 1, 29, 47, 1, 42, 1, 1, 1, 1, 61, 26, 1, 25, 1, 21, 1, 64, 21, 1, 1, 29, 1, 18, 1, 1, 11, 21, 1, 1, 59, 1, 1, 39, 1, 1, 5, 1, 1, 1, 1, 32, 1, 1, 1, 42, 1, 9, 1, 1, 29, 55, 1, 44, 1, 37, 1, 105, 1, 101, 1, 1, 1, 1, 1, 1, 1, 100

OFFSET

1,3

COMMENTS

Note that the running product for each a(n+1) is incrementally taken mod n

PROG

(Python)

def f(n):

if n == 1: return 1

a = 1

for k in range(1, n):

a = a * f(k) % (n - 1)

return a + 1

CROSSREFS

Inspired by A066910

KEYWORD

allocated

nonn

AUTHOR

Matt Donahoe, Aug 22 2020

STATUS

approved

editing

Discussion
Sat Aug 22
07:07
Matt Donahoe: This is my first sequence. Happy to hear feedback on how to improve my submission. Thanks!
#1 by Matt Donahoe at Sat Aug 22 07:05:31 EDT 2020
NAME

allocated for Matt Donahoe

KEYWORD

allocated

STATUS

approved