how to sovle array which odd and even have difference recursive function

*To*: mathgroup at smc.vnet.net*Subject*: [mg125262] how to sovle array which odd and even have difference recursive function*From*: jie zhao <nbt3710 at gmail.com>*Date*: Fri, 2 Mar 2012 07:52:33 -0500 (EST)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com

RSolve[{(b[n] == 1 + b[n/2] && Mod[n, 2] == 0) && (b[n] == 1/n && Mod[n, 2] == 1)}, b[n]==2, n] failed to work ! when n is odd b[n] == 1/n when n is even b[n] == 1 + b[n/2]