Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A082928
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A082928 If n is prime, a(n) = n+1; if n is even, a(n) = n/2; otherwise a(n) = n. +0
2
1, 3, 4, 2, 6, 3, 8, 4, 9, 5, 12, 6, 14, 7, 15, 8, 18, 9, 20, 10, 21, 11, 24, 12, 25, 13, 27, 14, 30, 15, 32, 16, 33, 17, 35, 18, 38, 19, 39, 20, 42, 21, 44, 22, 45, 23, 48, 24, 49, 25, 51, 26, 54, 27, 55, 28, 57, 29, 60, 30, 62, 31, 63, 32, 65, 33, 68, 34, 69, 35, 72, 36, 74, 37 (list; graph; listen)
OFFSET

0,2

FORMULA

seq = if n even then n/2 else n. seq = if n is prime then n+1. Sumseq = Sumseq + seq for n=1, 2, ...

PROGRAM

(PARI) a(n)={if(isprime(n), n+1, if(n%2, n, n/2))}

CROSSREFS

Sequence in context: A133620 A154570 A145961 this_sequence A139524 A108127 A049277

Adjacent sequences: A082925 A082926 A082927 this_sequence A082929 A082930 A082931

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), May 26 2003

EXTENSIONS

Edited by Charles R Greathouse IV (charles.greathouse(AT)case.edu), Oct 09 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 23:11 EST 2009. Contains 170347 sequences.


AT&T Labs Research