[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [obm-l] cone sul



>
>Ol� pessoal, gostaria de ajuda nessa quest�o:
>
>1. De cada n� inteiro positivo n, n =<99,subtraimos a soma dos quadrados 
>dos
>seus algarismos.Para q valores de n essa diferen�a � a maior possivel?

Seja n = [xy] = 10x + y
k = 10x + y � x^2 � y^2 = (10x � x^2) + (y � y^2)
Temos que k � a soma de duas fun��es inteiras independentes (uma em x e 
outra em y), portanto o valor m�ximo de k vai coincidir com o valor m�ximo 
das duas fun��es
i) f(x) = 10x � x^2   =>   xmax = 10/2   =>   xmax = 5     =>
f(x)max = f(5)   =>     f(x)max = 25
ii) g(x) = y � y^2 = y(1 � y)   =>   ymax = 0  ou  1
Ent�o  n = xy   =>   n = 50   e   n = 51



>
>Valeu!
>F�
>
>_________________________________________________________________
>Chegou o novo MSN Explorer. Instale j�. � gratuito:
>http://explorer.msn.com.br
>
>=========================================================================
>Instru��es para entrar na lista, sair da lista e usar a lista em
>http://www.mat.puc-rio.br/~nicolau/olimp/obm-l.html
>O administrador desta lista � <nicolau@mat.puc-rio.br>
>=========================================================================


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

=========================================================================
Instru��es para entrar na lista, sair da lista e usar a lista em
http://www.mat.puc-rio.br/~nicolau/olimp/obm-l.html
O administrador desta lista � <nicolau@mat.puc-rio.br>
=========================================================================