login

Revision History for A364628

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

Showing entries 1-10 | older changes
For p = 7 and n > 0, write n = p^m + k, m >= 0, with maximal p^m <= n, with 0 <= k < p^(m+1) - p^m, then for n such that k=0, a(n)=n, and for n such that k > 0, a(n) is the smallest q*a(k), prime q != p, that is not already a term.
(history; published version)
#25 by OEIS Server at Sun Sep 17 01:36:22 EDT 2023
LINKS

Michael De Vlieger, <a href="/A364628/b364628_1.txt">Table of n, a(n) for n = 1..16807</a>

#24 by N. J. A. Sloane at Sun Sep 17 01:36:22 EDT 2023
STATUS

proposed

approved

Discussion
Sun Sep 17
01:36
OEIS Server: Installed first b-file as b364628.txt.
#23 by Michael De Vlieger at Sat Sep 16 16:01:23 EDT 2023
STATUS

editing

proposed

#22 by Michael De Vlieger at Sat Sep 16 15:58:59 EDT 2023
NAME

allocated For p = 7 and n > 0, write n = p^m + k, m >= 0, with maximal p^m <= n, with 0 <= k < p^(m+1) - p^m, then for n such that k=0, a(n)=n, and for Michael De Vliegern such that k > 0, a(n) is the smallest q*a(k), prime q != p, that is not already a term.

DATA

1, 2, 4, 8, 16, 32, 7, 3, 6, 12, 24, 48, 64, 14, 9, 18, 36, 72, 96, 128, 28, 27, 54, 108, 144, 192, 256, 56, 81, 162, 216, 288, 384, 512, 112, 243, 324, 432, 576, 768, 1024, 224, 486, 648, 864, 1152, 1536, 2048, 49, 5, 10, 20, 40, 80, 160, 21, 15, 30, 60, 120

OFFSET

1,2

COMMENTS

This is sequence D(p), p = 7, where the Doudna sequence A005940 is D(2).

LINKS

Michael De Vlieger, <a href="/A364628/b364628_1.txt">Table of n, a(n) for n = 1..16807</a>

<a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

MATHEMATICA

p = 7; nn = 343; c[_] = False;

Do[Set[{m, k}, {1, n - p^Floor[Log[p, n]]}];

If[k == 0,

Set[{a[n], c[n]}, {n, True}],

While[Set[t, Prime[m] a[k]]; Or[m == i, c[t]], m++];

Set[{a[n], c[t]}, {t, True}]], {n, nn}];

Array[a, nn]

CROSSREFS

Cf. A005940 (D(2)), A356867 (D(3)), A364611 (D(5)).

KEYWORD

allocated

nonn

AUTHOR

Michael De Vlieger, Sep 16 2023

STATUS

approved

editing

#21 by Michael De Vlieger at Mon Sep 11 09:02:24 EDT 2023
NAME

allocated for Michael De Vlieger

KEYWORD

recycled

allocated

#20 by Michael De Vlieger at Mon Sep 11 09:02:08 EDT 2023
STATUS

reviewed

approved

#19 by Michel Marcus at Mon Sep 11 08:55:15 EDT 2023
STATUS

proposed

reviewed

#18 by Joerg Arndt at Mon Sep 11 05:07:31 EDT 2023
STATUS

editing

proposed

#17 by Joerg Arndt at Mon Sep 11 05:07:27 EDT 2023
NAME

a(n)=3*n^3-n+1

DATA

3, 23, 79, 189, 371, 643, 1023, 1529, 2179, 2991, 3983, 5173, 6579, 8219, 10111, 12273, 14723, 17479, 20559, 23981, 27763, 31923, 36479, 41449, 46851, 52703, 59023, 65829, 73139, 80971, 89343, 98273, 107779, 117879, 128591, 139933, 151923, 164579, 177919

OFFSET

1,1

COMMENTS

a(n) is always congruent to 1,3 or 9 mod 10.

FORMULA

a(n)=3*n^3-n+1

EXAMPLE

For n=7, a(7)=3*7^3-7+1=1023

MATHEMATICA

Table[3*Power[n, 3] - n + 1, {n, 0, 50}]

PROG

(Python)

for n in range(50):

n=n+1

print(str(3*n**3-n+1))

KEYWORD

nonn,changed

recycled

AUTHOR

Bairav Murugan, Aug 24 2023

#16 by Hugo Pfoertner at Sat Sep 09 01:06:09 EDT 2023
STATUS

proposed

editing

Discussion
Sat Sep 09
01:07
Hugo Pfoertner: ... too many ...
01:14
Bairav Murugan: Okay, thank you
Sun Sep 10
14:26
Hugo Pfoertner: Before we recycle the sequence, a little recommendation to Bairav: If you are interested in the rate at which different polynomials produce prime numbers, you can experiment with e.g. 3*n^3-n+k with modified k. You will see that, for example, k=31, 129, 179 produce a particularly large number of prime numbers, while k=13, 33, 117, 253 produce a particularly small number of primes. Similar investigation m*n^3-n+1. Many prime numbers with m=13, 163, 193, 349, a few with 17, 87, 257, 381, 437, ...