Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!news.mathforum.org!not-for-mail
From: Tim Smith <imaccormick@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: making non integer values sum to n
Date: Thu, 20 Nov 2008 18:00:13 EST
Organization: The Math Forum
Lines: 10
Message-ID: <17829314.1227222052740.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1227222052 8087 144.118.30.135 (20 Nov 2008 23:00:52 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Thu, 20 Nov 2008 23:00:52 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:502178

Sorry for previous post it was slightly incorrect:
Can anyone help me with this problem

where n is divisible by 4 and n,a,b are any real integers such that a+b<(n/2)

i need to create a statement such that:

integer((n-a-b)/4) + a + integer((n-a-b)/2) + b + integer((n-a-b)/2) = n

can anyone help?