Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A160522
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A160522 The n-th odd composite number minus the n-th even composite number. +0
3
5, 9, 13, 15, 15, 19, 19, 21, 25, 27, 27, 29, 29, 33, 33, 35, 39, 39, 41, 43, 43, 45, 45, 45, 47, 51, 55, 57, 57, 57, 57, 57, 57, 59, 61, 61, 65, 65, 65, 65, 69, 69, 71, 71, 73, 75, 75, 77, 77, 81, 81, 81, 81, 85, 89, 89, 89, 89, 89, 91, 91, 91, 91, 91, 93, 97, 99, 99, 103, 103 (list; graph; listen)
OFFSET

1,1

LINKS

K. Stern, Table of n, a(n) for n=1..1000

FORMULA

a(n) = A071904(n) - A005843(n+1).

PROGRAM

(Other) %% Matlab code to generate n-th odd composite minus nth even composite function [a] = A160522(k) j = 1; n = 1; even = 4; while j < k n = n + 1; if isprime(n) == 1 else if mod(n, 2) == 0 else a(j, 1) = n - even; even = even + 2; j = j + 1; end end end

(PARI) {m=70; v=vector(m); k=4; n=0; while(n<m, if(k%2>0&&!isprime(k), n++; v[n]=k-2*(n+1)); k++); v} [From Klaus Brockhaus, May 22 2009]

CROSSREFS

Cf. A002808, A005843, A071904.

Cf. A047846 [From Kyle Stern (kstern1(AT)umbc.edu), Jun 01 2009]

Sequence in context: A130333 A080579 A165971 this_sequence A062976 A080580 A098991

Adjacent sequences: A160519 A160520 A160521 this_sequence A160523 A160524 A160525

KEYWORD

easy,nonn

AUTHOR

Kyle Stern (kstern1(AT)umbc.edu), May 16 2009

EXTENSIONS

Extended and formula edited by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), May 22 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 November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research