login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A357379 a(n) = A357378(floor(n/2)) * A357378(n). 3
1, 2, 4, 6, 8, 10, 3, 9, 12, 16, 5, 15, 7, 11, 18, 21, 24, 27, 20, 28, 13, 14, 30, 33, 35, 42, 22, 44, 36, 48, 49, 56, 32, 40, 45, 54, 25, 50, 63, 70, 26, 39, 84, 98, 60, 80, 55, 66, 65, 75, 72, 78, 34, 38, 52, 64, 90, 96, 88, 104, 77, 91, 112, 120, 68, 76, 85 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
This sequence is a bijection from the nonnegative integers to the positive integers with inverse A357396 (see comments in A357378).
LINKS
Rémy Sigrist, C program
EXAMPLE
a(5) = A357378(floor(5/2)) * A357378(5) = A357378(2) * A357378(5) = 2 * 5 = 10.
PROG
(C) See Links section.
(Python)
from itertools import count, islice
def agen(): # generator of terms
alst, disallowed = [1], {1}; yield 1
for n in count(1):
ahalf, k = alst[n//2], 1
while ahalf*k in disallowed: k += 1
an = k; yield ahalf*an; alst.append(an); disallowed.add(ahalf*an)
print(list(islice(agen(), 67))) # Michael S. Branicky, Sep 26 2022
CROSSREFS
Cf. A357378, A357396 (inverse).
Sequence in context: A004522 A004521 A103694 * A083167 A338741 A115950
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Sep 26 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 00:58 EDT 2024. Contains 371798 sequences. (Running on oeis4.)